Unity 5.1.1 android "unified manifest" or "classes in dex format"

I tried this version on my unity 5.1.1 (6.2.2, 7.0.1, 7.0.2) and I get errors in all cases when I create this in android.

Any idea?

In the "stable version 6.2.2 I get" inability to convert files to dex format "

errors:

1. CommandInvokationFailure: cannot convert classes to dex format. See Console for more details.

C: \ Program Files \ Java \ jdk1.7.0_17 \ bin \ java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir = "C: / Program Files (x86) / Android / android-sdk \ tools" -Dfile. encoding = UTF8 -jar "C: / Program Files / Unity / Editor / Data / BuildTargetTools / AndroidPlayer \ sdktools.jar" - STDERR [UNDEFINED TOP LEVEL EXCLUSION: java.lang.IllegalArgumentException: already added: Landroid / support / v4 util / TimeUtils; is ..

2. Error building Player: CommandInvokationFailure: cannot convert classes to dex format. See Console for more details.

C: \ Program Files \ Java \ jdk1.7.0_17 \ bin \ java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir = "C: / Program Files (x86) / Android / android-sdk \ tools" -Dfile. encoding = UTF8 -jar "C: / Program Files / Unity / Editor / Data / BuildTargetTools / AndroidPlayer \ sdktools.jar" - STDERR [UNDEFINED TOP LEVEL EXCLUSION: java.lang.IllegalArgumentException: already added: Landroid / support / v4 util / TimeUtils; at com.android.dx.dex.file.ClassDefsSection.add (ClassDefsSection.java:122) at com.android.dx.dex.file.DexFile.add (DexFile.java:161) in

is ..

In 7.0.2 I get "cannot merge manifest files"

0
source share
1 answer

This is most likely the result of duplicating .jar files in your project. Try to find where your TimeUtils is, and make sure that your Assets / Plugins / Android folder does not have similar .jar files - make sure that you are still looking deeper into the folders in the Android folder. Please note that this may not be an exact duplicate of the name (another reason may be a different version number).

I had the same problem with the push notification plugin in my application (I had 2, so I deleted one).

0
source

All Articles