When i add Push Notifications to my app, i get an error on Android (iOS works perfectly):
Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/iid/zzc;
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/iid/zzc;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
I’ve seen the solutions proposed here and here. but it don’t work.
The code is on this project is on GitHub if anyone want to try it and suggest a fix. By the way, it’s the official release f the DoubleClick SDK for Fuse Tools
Thanks John. Multi-dex support is on the todo list for Fuse so stay tuned for that. Part of that process is updating the build tools and so we will need to do a lot of internal testing to make sure we don’t ship any regressions.
I notice that a previous line references the com.google.android.gms package, but using a different version. I was trying to use the version 11, and it’s referencing the 9.2. So i changed this line: