Open wendt88 opened 4 years ago
The same problem. However, it happens even after just cloning this repository, install and build without any additional actions.
node --version
v10.14.0
tns --version
6.2.0
java -showversion
java version "1.8.0_211"
Android SDK Build Tools: 28.0.3 Windows 10 Enterprise 1809 17763.615
git clone https://github.com/NativeScript/worker-loader.git
cd demo-angular
npm install
tns build android
...
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (android)
Building project...
Gradle build...
+ setting applicationId
+ applying user-defined configuration from C:\Projects\worker-loader\demo-angular\app\App_Resources\Android\app.gradle
+ using android X library androidx.legacy:legacy-support-v4:1.0.0
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: C:\Projects\worker-loader\demo-angular\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar
Error executing Static Binding Generator: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:C:\Projects\worker-loader\demo-angular\platforms\android\app\src\main\java\com\tns\FragmentClass.java Class: com.tns.FragmentClass
Detailed log here: C:\Projects\worker-loader\demo-angular\platforms\android\build-tools\runSbg.log
Command gradlew.bat failed with exit code 1
Removal of both workers from the project leads to a successful build. Any suggestions?
maby #41 will fix this issue too
I tried to automate the build process and run the command with a
child_process
. I tried theexec
andspawn
methods, but get always the same error:when I remove the workers it builds correctly. is there maby an option to get it work, or is it a bug?