- Home /
CommandInvokationFailure: Unable to convert classes into dex format. Admob, Google Play Services Plugins
Hello everybody, I have in my Project Admob and Google Play Services Plugins. At first I had just admob plugin and everything worked fine but when I implemented Google Services plugin I have started to get error like in title. I know this error appears when are same .arr or .jar files in project but when I delete google services plugins I can build apk but services don't work and when i delete admob plugins game crashs at launch. Any ideas how to implement both plugins? All plugins: Error: Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzeg;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzeh;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzei;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/api/signin/internal/zzf;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/api/signin/internal/zzg;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/api/signin/internal/zzh;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzble;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;
Answer by liortal · Aug 20, 2017 at 08:09 PM
The problem (according to the screenshot) is that you have a mixed set of versions of Google play services .aar files.
From the screenshot, i can see that some of the libraries you have are from v11.0.4 while the others are 10.2.0.
You should make sure that all Google play services .aar versions are the same.
It fixed my problem,
Got play-services-ads not at the same version than all the other arr for play services. What's been more complexe is too find the good version of the file, since unity didn't ask to update it.
I finally found it in the sdk installation around here : ..\sdk\extras\google\m2repository\com\google\android\gms
Thanks a lot !
how did you solve this problem ? i have the play-services-ads-lite-v10.2.0 and the rest of the files are 11.0.4 I know the problem was with the duplicates files but the ads-lite doesn't have a duplicate.
Update: thanks for the solution got the latest from the same directory you mentioned.
Answer by dhitz666 · Jan 02, 2018 at 01:16 AM
duplicate file. my game works perfect https://play.google.com/store/apps/details?id=com.zskull.blocks
use play-games-plugin-for-unity-0.9.41, iap, unity ads https://github.com/Unity-Technologies/unity-ads-assetstore-test
but if use unity ads from asset store show CommandInvokationFailure: Unable to convert classes into dex format. Admob, Google Play Services Plugins and so remove unity ads plugin and try publish to store with this unity ads https://github.com/Unity-Technologies/unity-ads-assetstore-test unity ads work fine
Your answer
Follow this Question
Related Questions
Admob script help 0 Answers
iOS Build crashing dyld: Symbol not found 2 Answers
what do you do after setting up admob in the unity editor 0 Answers
Interstitial and scrip admob 0 Answers
Google Admob Events not being called 1 Answer