Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Build Error #3106
Hello goodday. I juat updated my Nativescript today to 2.4.0. I built and ran, all worked fine, then I needed to rename my app, I navigated to the steings.xml file in /platform/android/.../values/strings.xml
I changed the app name string and when I try to build, the build failes. I get the following error.
multiple dex files Lcom/tns/Fragment Class
Thanks. That worked but now I get this @Pip3r4o
FAILURE: Build failed with an exception.
Total time: 47.065 secs
This is from stacktrace
$ ./gradlew buildapk --stacktrace
Ok, first of, I have an old MacBook so I'm not able to use Build tools greater than 22.0.1. I can't upgrade my MacBook os also. I know nativescript requires Build tools 23 or so but I normally use a workaround by changing my build tools version and everything worked fine.
I scaffolded a new application with
Here is stacktrace
The output from --log trace is so so long my console even had to truncate some part
Here is an some part of it towards the end
`16:14:50.241 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':processF0DebugResources'
Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
is a valid Android API level. For example: 22, 23.
Okay after long hours of debugging I found out the problem was the app.gradle file in
So I removed the code below in the app.gradle file and now the app builds successfully