- Home /
Jar Conflict
Hi,
I'm trying to integrate to different plugins in my project. The first one is Google Analytics, and the other is one that use google_play_services. The problem is that Google Analytics use some clases that are included in google_play_services so I'm having this error when I'm trying to build.
Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/Javier/Documents/android-sdk-macosx/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity464/Unity.app/Contents/BuildTargetTools/AndroidPlayer/sdktools.jar" -
stderr[
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/internal/Command;
What can I do to avoid this conflict? Can I merge the to Jars in some way? Thank you.
Answer by ShabihDesperado · May 20, 2015 at 03:49 PM
I found for the answer here: https://github.com/googleanalytics/google-analytics-plugin-for-unity/issues/51 In a comment mauriciotollin give us a link to download play services r23 that will fix it. Download link: http://dl.google.com/android/repository/google_play_services_7095000_r23.zip
It's a temp solution, I'm still opened to new answers for future conflicts.
Your answer
Follow this Question
Related Questions
Google Analytics For Unity 1 Answer
Disabling google analytics 2 Answers
Google Analytics 0 Answers
Error compiling Google Analytics plugin 0 Answers