- Home /
Problem is not reproducible or outdated
Android build failed error
When I build for Android, it builds almost entirely and then gives me this error at the very end:
.
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex See the Console for details.
.
The unable to merge dex means nothing to me, so I hoped to gain meaning out of the Console. Unfortunately, the stuff in the Console is all Greek to me.
.
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
.
Does anyone have any idea what this might mean, and how to fix it?
the error message you posted is not complete, the actual error is probably shown after that or in a different log message. please post the full error message you are getting.
Answer by arbazgillani · Nov 15, 2018 at 07:23 AM
Make a gradle build.
Unity uses a gradle build type by default. Is that what you mean by gradle build? I can build it when I select export project, but I can't build the apk.
Follow this Question
Related Questions
The game freezes after a splash screen 0 Answers
Gradle build faild. see... error "in unity 2020.1.4f1!!!" 0 Answers
Android Build Error 1 Answer
MissingMethodException: get_vuforiaEnabled() 3 Answers
Building android application 1 Answer