-
-
Notifications
You must be signed in to change notification settings - Fork 141
Description
Despite the slowness of the looong launch time and the slow navigation experiencing on the version 3.3, I decided to update to the latest version of Nativescript, embedding the famous Webpack, which apparently offers greats performance improvements.
To do so, I followed each one of the instructions here. This led me to have a new version of the application, getting webpack (which I didn't succeeded to get working on the previous version) and {N} 3.4.
As I am typing on my keyboard the so-used command to run the app on my device, I am full of hopes that the Nativescript Developer team found a way to get rid of all the problems that was happening before, when trying to integrate WebPack to an existing project.
Oh no I am in front of a big stack of errors about relative paths; thus I refactor all of my components' paths to stop seeing all these errors.
Now everything is clean, the app builds without any problem, it is now installed on my device. My application is now opening, that's wonderful it works like charm now, and oh wait, it just crashed ...
Perhaps just a bug, I try to restart the app, and it crash again ...
All my hopes fly away, I facing the same problems that with the previous nativescript version.
I am not going to let down so easily, so I try to get it running with all the optimized setting options I have found :
tns run android --bundle --env.aot --env.snapshot --env.uglify --env.report
Doing so the app is not even building, and shows other errors.
I have currently been struggling against an incalculable number of errors coming from everywhere, but I feel like stuck in quicksand. Every time I solve one, another is popping.
For example, I had errors about SDK licenses, about aot files excluded from tsconfig, about plugin dependencies, but nothing seems to be the final solution.
So I am here to request for your help because I am getting desperate getting my app running with all the benefits from webpack ...
Here is the latest error I am facing :
Running full build
Exception in thread "main" java.io.IOException: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:/Users/me/Documents/nativescript_apps/myapp/platforms/android/app/src/main/java/com/tns/gen/java/lang/Object_frnal_ts_helpers_l58_c38__t.java Class:
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:68)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:15)
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/me/Documents/nativescript_apps/myapp/platforms/android/build-tools/android-static-binding-generator/build.gradle' line: 284
* What went wrong:
Execution failed for task ':asbg:generateBindings'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
As before, if I launch tns run android
, the app builds fine, but crashes on startup, and if I run tns run android --bundle --env.aot --env.snapshot --env.uglify --env.report
I get this error.
I will appreciate any kind of help !