Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with ns embed android #1

Open
aarondiazr opened this issue Oct 16, 2024 · 0 comments
Open

Error with ns embed android #1

aarondiazr opened this issue Oct 16, 2024 · 0 comments

Comments

@aarondiazr
Copy link

Hi!

I am trying to run these projects, but there is not much documentation about it. When I run the command ns embed android, the terminal shows the following:

Preparing project...
asset vendor.js 19 MiB [emitted] (name: vendor) (id hint: defaultVendor)
asset bundle.js 48.2 KiB [emitted] (name: bundle)
asset runtime.js 12.8 KiB [emitted] (name: runtime)
Entrypoint bundle 19.1 MiB = runtime.js 12.8 KiB vendor.js 19 MiB bundle.js 48.2 KiB
orphan modules 15.1 KiB [orphan] 10 modules
runtime modules 2.72 KiB 8 modules
modules by path ./node_modules/ 6.07 MiB
  javascript modules 5.81 MiB 586 modules
  json modules 273 KiB
    modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules
    modules by path ./node_modules/css-tree/ 30.7 KiB 2 modules
modules by path ./src/ 13.8 KiB
  modules by path ./src/app/ 6.65 KiB 6 modules
  modules by path ./src/*.ts 860 bytes
    ./src/polyfills.ts 545 bytes [built] [code generated]
    ./src/main.ts 315 bytes [built] [code generated]
  ./src/app.css 6.31 KiB [built] [code generated]
external "~/package.json" 42 bytes [optional] [built] [code generated]
webpack 5.91.0 compiled successfully in 6946 ms
Webpack compilation complete.
         ~ applying user-defined configuration from /Users/snoopy/Git-Projects/ns-embed-example/tools/App_Resources/Android/before-plugins.gradle
Built aar for @nativescript/core
sed: no such file or directory: /Users/snoopy/Git-Projects/ns-embed-example/host-android-project/nativescript/src/main/AndroidManifest.xml

And when I try to run the nativescript-project-ng project to verify that it works, I get this:

Execution failed for task ':app:compileDebugJavaWithJavac'.
Process 'command '/Users/snoopy/Library/Java/JavaVirtualMachines/graalvm-jdk-17.0.10/Contents/Home/bin/jlink'' finished with non-zero exit value 1

The tns doctor android command returns this:

✔ Getting environment information 

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.8.2 version and is up to date.
⚠ Update available for component @nativescript/core. Your current version is 8.8.2-next-09-03-2024-10686468786 and the latest available version is 8.8.2.
⚠ Update available for component @nativescript/android. Your current version is 8.8.6-next.2024-10-15-11348502687 and the latest available version is 8.8.5.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant