2016-03-22 6 views
0

Der Fehler, den ich habe, ist: Fehler: Ausführung fehlgeschlagen für Task ': app: packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: doppelten Eintrag: com/google/android/gms/internal/zzqr.classFehler: java.util.zip.ZipException: doppelte Eingabe schlägt fehl beim Erstellen

Ich habe seit Stunden zu diesem Thema stecken.

Hier ist meine Build.Gradle (App-Datei).

apply plugin: 'com.android.application' 
apply plugin: 'io.fabric' 

repositories { 
maven { url 'https://maven.fabric.io/public' } 
} 



buildscript { 
dependencies { 
    classpath 'io.fabric.tools:gradle:1.+' 
} 

repositories { 
    maven { url 'https://maven.fabric.io/public' } 

    } 
} 



android { 
compileSdkVersion 23 
buildToolsVersion "23.0.2" 

defaultConfig { 
    applicationId "org.my.app" 
    minSdkVersion 19 
    targetSdkVersion 23 
    versionCode 140 
    versionName "1.4.0" 
    multiDexEnabled true 
} 

buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
    } 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:multidex:1.0.1' 
compile 'com.android.support:appcompat-v7:23.2.0' 
compile 'com.google.android.gms:play-services-maps:8.4.0' 
compile 'com.google.android.gms:play-services-location:7.0.0' 
// Android SDK 
compile 'com.facebook.android:facebook-android-sdk:4.+' 
// Audience Network SDK. Only versions 4.6.0 and above are available 
compile 'com.facebook.android:audience-network-sdk:4.+' 
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
    transitive = true; 
} 
compile 'com.facebook.fresco:fresco:0.9.0+' 
compile('com.crashlytics.sdk.android:crashlytics-ndk:[email protected]') { 
    transitive = true; 
} 
} 

crashlytics { 
enableNdk true 
androidNdkOut 'src/main/obj' 
androidNdkLibsOut 'src/main/libs' 
} 

Antwort

1

Sie fügen die gleiche Klasse zweimal mit verschiedenen Versionen hinzu.
Sie verwenden die Google-Services-Module mit unterschiedlichen Versionen spielen:

Verwendung:

compile 'com.google.android.gms:play-services-maps:8.4.0' 
compile 'com.google.android.gms:play-services-location:8.4.0' 
+1

Vielen Dank :) – datasmurfen

Verwandte Themen