-
-
Notifications
You must be signed in to change notification settings - Fork 197
Unable to launch app using "tns run android --bundle --emulator" #3838
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
Comments
Hey @NagShukl,
|
Hi Rosen, details as:
Anyway pasting here below. #2. With this command i see it generates hugh logs; wasn't able to copy all; but the last snapshot is here below. C:\JSR_Tene\POCS\napp\jsr-app> |
Thanks for the provided logs. In order to get the full output of the mentioned command, you can redirect the output to a file: One other question - are you working behind a corporate proxy or firewall? |
are you working behind a corporate proxy or firewall? - Yes Firewall. |
Sorry, I've missed the Can you try deleting your platforms folder and running |
Yeah, we'll still need the full logs. Please delete the platforms directory and execute Thanks a lot for your cooperation! |
Thanks, Here is the gist of output got while running command you gave in earlier comment. |
Thanks for the provided output. It seems you have stopped the execution before it was finished. Can you try the following:
|
Please fresh set of logs at https://gist.github.com/NagShukl/df5da1e35f26aa54afd41de3dac81e79 |
Hey @NagShukl ,
and
In order to resolve the issue, can you please try updating your Java version and see if it will help? |
Thx, Answer for First ask is. I may consider Java upgrade; do let me know exact appropriate Java version, to get it working. |
I tried with jdk1.8.0_181 FAILURE: Build failed with an exception.
BUILD FAILED in 8s |
Hey @NagShukl , |
Closing this one due to inactivity but @NagShukl please do let us know if you need further assistance on this one! |
Thanks, for closing it. I did fresh setup on other workstation everything works as expected. Thx. |
Dear Team!!,...congratulations and appreciations for create a project like NativeScript - which was much needed. Further i tried creating 2 project - followed steps mentioned at https://blog.angular.io/apps-that-work-natively-on-the-web-and-mobile-9b26852495e7
added very small component to it.
everything goes well - application runs expected on browser but when i try running.
"tns run android --bundle --emulator"
it fails with below stack - please help me to move ahead and explore more to use NativeScript with full capacity.
Hook skipped because either bundling or livesync is in progress.
Preparing project...
Executing before-prepareJSApp hook from C:\JSR_Tene\POCS\napp\jsr-app\hooks\befo
re-prepareJSApp\nativescript-dev-webpack.js
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (Android)
Executing after-prepare hook from C:\JSR_Tene\POCS\napp\jsr-app\hooks\after-prep
are\nativescript-dev-webpack.js
Building project...
Gradle build...
+ setting applicationId
+ applying user-defined configuration from C:\JSR_Tene\POCS\napp\jsr-ap
p\App_Resources\Android\app.gradle
+ adding nativescript runtime package dependency: nativescript-optimize
d-with-inspector
+ adding aar plugin dependency: C:\JSR_Tene\POCS\napp\jsr-app\node_modu
les\tns-core-modules-widgets\platforms\android\widgets-release.aar
Exception in thread "main" java.lang.SecurityException: java.lang.AbstractString
Builder - protected system package 'java.lang'
at java.lang.ClassLoader.checkClassName(ClassLoader.java:291)
at java.lang.ClassLoader.defineClass(ClassLoader.java:333)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:15
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:727)
at java.net.URLClassLoader.access$400(URLClassLoader.java:95)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1182)
at java.security.AccessController.doPrivileged(AccessController.java:595
)
at java.net.URLClassLoader.findClass(URLClassLoader.java:602)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:797)
at java.lang.ClassLoader.loadClass(ClassLoader.java:771)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:1220)
at java.lang.ClassLoader.loadClass(ClassLoader.java:752)
at org.nativescript.staticbindinggenerator.GetInterfaceNames.generateInt
erfaceNames(GetInterfaceNames.java:59)
at org.nativescript.staticbindinggenerator.GetInterfaceNames.generateInt
erfaceFile(GetInterfaceNames.java:32)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:42)
FAILURE: Build failed with an exception.
Execution failed for task ':app:runSbg'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 32s
Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat
failed with exit code 1.
Executing after-watch hook from C:\JSR_Tene\POCS\napp\jsr-app\hooks\after-watch
nativescript-dev-typescript.js
Executing after-watch hook from C:\JSR_Tene\POCS\napp\jsr-app\hooks\after-watch
nativescript-dev-webpack.js
Stopping webpack watch
Executing after-watch hook from C:\JSR_Tene\POCS\napp\jsr-app\hooks\after-watch
nativescript-dev-typescript.js
Executing after-watch hook from C:\JSR_Tene\POCS\napp\jsr-app\hooks\after-watch
nativescript-dev-webpack.js
The text was updated successfully, but these errors were encountered: