Error building Player: CommandInvokationFailure: Unable to convert classes into dex format
After integrating chartboost in my unity project there is a jar to dex convert failure resulting in build failure. Looked for the solutions online and found, it is caused by duplicate files (libs etc) being present in the plugins folder, but there are no duplicate files present in the plugin folder of my project. Still am facing this issue.
Thanks in advance. :) :)
Answer by KaushikRahul · May 12, 2017 at 08:17 AM
Remove 'android_bridge.jar' file.
'android_bridge.jar' and 'chartboost_unity_android_bridge.jar' are two files which are causing the error. As you can see from the name, both does the same job of creating an android bridge in the App. Having two same files doesn't makes sense and also is causing this 'Duplicate files Error'.
Edit : these files are under "Plugins -> Android -> ChartboostSDK -> Libs" folder.
but i dont have the chartboost sdk in my project but i'm still facing this error! What Should I Do? Please help me as soon as possible!
Answer by DivyeshVora · Mar 31, 2018 at 04:30 AM
Hello @KaushikRahul
I am facing same problem.I download the latest unity chartboost sdk , i fixed the play service issue.Now its error on android_bridge.jar and chartboost.jar.I dont have any chartboost jar in my code.Can you please tell me how can i solve the dex error issue. ?
Thanks
,Hello @KaushikRahul
I am facing same problem.I download the latest unity chartboost sdk , i fixed the play service issue.Now its error on android_bridge.jar and chartboost.jar.I dont have any chartboost jar in my code.Can you please tell me how can i solve the dex error issue. ?
Thanks