2017-07-20 1 views
0

ich diese Störung erhalte:Fehler: Ausführung fehlgeschlagen für Task ': app: transformClassesWithJarMergingForDebug'. auch mit der Meldung> zznn.class

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zznn.class 

Dies ist meine Abhängigkeiten Block gradle. Bitte helfen Sie. Ich habe auch meine multidexenabled wahr

compile 'com.android.volley:volley:1.0.0' 
compile project(':BaseGameUtils') 
compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:appcompat-v7:25.3.1' 
testCompile 'junit:junit:4.12' 
compile 'com.google.firebase:firebase-appindexing:11.0.2' 
compile 'com.google.android.gms:play-services-ads:11.0.2' 

compile 'com.android.support:recyclerview-v7:25.3.1' 
compile 'com.android.support:design:25.3.1' 

compile "com.squareup.picasso:picasso:2.4.0" 
compile 'com.github.bumptech.glide:glide:3.5.2' 
compile 'de.hdodenhof:circleimageview:1.3.0' 
compile 'com.android.support:cardview-v7:25.3.1' 
compile 'com.android.support:multidex:1.0.1' 

Antwort

0

Was wir tun müssen, ist das zusätzliche Paket zu löschen.

Nach Ihrer Frage, müssen wir wissen, dass, welches Paket die com/google/android/gms/internal/zznn.class in ist.

Dann werden wir das Paket finden und löschen.

+0

Bitte können Sie angeben, welches Paket entfernt werden soll? –

+0

@AbhinavMasters hinzufügen '{ Gruppe ausschließen: 'com.google.android.gms' }' 'nach kompilieren‚com.google.android.gms: Play-Dienste-Anzeigen: 11.0.2'' – KeLiuyue

+0

@AbhinavMasters eine andere Art und Weise um es zu lösen, können Sie sich das ansehen [https://StackOverflow.com/questions/33209631/errorexecution-failed-for-task-apptransformclasseswithjarmergingfordebug](https://StackOverflow.com/questions/33209631/errorexecution-failed-for -task-apptransformclasseswithjarmergingfordebug) – KeLiuyue

0

Nach Ihren log

com/google/android/gms/internal/zznn.class

dupliziert so für diese Lösung müssen Sie diese Klassendatei entfernen oder die Bibliothek ausschließen wie

compile 'com.google.android.gms:play-services-ads:11.0.2'{exclude module: "moduleToRemove"}

+0

Kannst du mir bitte helfen anzugeben, welches Modul du entfernen musst? –

+0

Dafür muss man herausfinden, aufgrund welchem ​​Modul dieser doppelte Fehler auftritt. –

+0

Vielleicht kann das helfen, 'com.google.firebase: firebase-appindexing: 11.0.2' durch' compile ('com.google.firebase : firebase-appindexing: 11.0.2 ') { Ausschlussgruppe:' com.google.android.gms ' } ' –

Verwandte Themen