Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/ads/identifier/AdvertisingIdClient.classFehler: Ausführung fehlgeschlagen für Task ': app: transformClassesWithJarMergingForDebug'
Dies ist meine build.gradle-Datei. Ich konnte es nicht lösen.
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.raja.myproject"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-analytics:7.3.0'
compile 'com.google.android.gms:play-services-maps:9.8.0'
compile 'com.google.android.gms:play-services-location:9.8.0'
compile 'com.android.support:multidex:1.0.0'
compile 'com.google.android.gms:play-services-appindexing:9.8.0'
}
ich änderte und kompiliert danke. Aber jetzt habe ich diesen Fehler bekommen. Fehler: Ausführung fehlgeschlagen für Task ': app: transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: doppelter Eintrag: com/google/android/gms/internal/zzanq.class –
Versuchen Sie, die Zeile zu entfernen: compile 'com.android .support: appcompat-v7: 23.4.0 'und sehen, was passiert – yakobom
Ich versuchte, aber gleichen Fehler :( –