Hi, I have many sdks for android in my project (Facebook SDK, google play 
services, ads sdk etc.).  And when I’m trying to build for android in 
Unity, following error occurs:

CommandInvokationFailure: Unable to convert classes into dex format. See 
the Console for details.

C:/Program Files/Java/jdk1.8.0_65\bin\java.exe -Xmx2048M 
-Dcom.android.sdkmanager.toolsdir="E:/work/adt-bundle-windows-x86_64-20140702/adt-bundle-windows-x86_64-20140702/sdk\tools"
 
-Dfile.encoding=UTF8 -jar 
"E:\work\Unity3d\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" 
-

stderr[

trouble writing output: Too many method references: 87363; max is 65536.

You may try using --multi-dex option.

To solve this problem I’ve exported the project from Unity to Google 
Android Project, then converted to Gradle project in Eclipse and then 
imported the Gradle project to Android Studio after that I’ve configured 
multidex support and tried to build apk, it failed with following error: 

Error:Execution failed for task ':Mahjong Fairy 
Tiles:transformClassesWithJarMergingForRelease'.

> com.android.build.api.transform.TransformException: 
java.util.zip.ZipException: duplicate entry: 
com/publisherName/gameName/android/gplay/BuildConfig.class

Can someone help me please?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e41b598d-573a-4481-9179-c9b5a7e60ebe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to