2017-09-25 4 views
2

Ich bekomme das doppelte Eintragsproblem zur Laufzeit, wenn ich die Intercom-Bibliothek zu meinem Gradle hinzufügen.Erhalte doppelten Eintrag java.util.zip.ZipException: doppelten Eintrag:

Das ist mein Gesamt App gradle

apply plugin: 'com.android.application' 

    android { 
compileSdkVersion 26 
buildToolsVersion '26.0.0' 
useLibrary 'org.apache.http.legacy' 
defaultConfig { 
    lintOptions { 
     abortOnError false 
     disable "ResourceType" 
     checkReleaseBuilds false 
    } 
    ndk { 
     abiFilters "armeabi", "armeabi-v7a","x86" 
    } 
    applicationId "com.sample.activities" 
    minSdkVersion 19 
    targetSdkVersion 26 
    multiDexEnabled true 
} 
dexOptions { 

    javaMaxHeapSize "4g" 
} 

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

productFlavors { 
    with_ImageProcessor { 
    } 
    without_ImageProcessor { 

    } 
} 

} 
configurations { 
} 






dependencies { 
compile 'com.google.android.gms:play-services-base:11.0.1' 

compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.viewpagerindicator:library:[email protected]' 


configurations { 
    all*.exclude group: 'org.hamcrest', module: 'hamcrest-core' 
} 


compile 'com.android.support:multidex:1.0.1' 

compile 'com.google.android.gms:play-services-gcm:11.0.1' 
compile 'com.google.android.gms:play-services-location:11.0.1' 
compile 'com.google.firebase:firebase-appindexing:11.0.1' 

compile 'com.android.support:design:26.0.1' 
compile 'com.android.support:design:26.0.2' 
compile 'com.android.support:appcompat-v7:26.0.2' 
compile 'com.android.support:support-v4:26.0.2' 
compile 'com.android.support:support-v13:26.0.2' 


//for intercom 

compile 'io.intercom.android:intercom-sdk-fcm:4.+' 


compile 'com.google.firebase:firebase-auth:11.0.1' 

compile 'com.google.android.gms:play-services-auth:11.0.1' 
compile 'com.google.firebase:firebase-database:11.0.1' 
compile 'com.google.firebase:firebase-messaging:11.0.1' 
compile 'com.uncopt:android.justified:1.0' 

compile 'com.google.firebase:firebase-invites:11.0.1' 


    } 
    apply plugin: 'com.google.gms.google-services' 

ich dieses Problem bin immer diese Zeile afetr Zugabe

compile 'io.intercom.android:intercom-sdk-fcm:4.+' 

Dies ist der Laufzeitfehler I

Störung erhalte: Ausführung fehlgeschlagen für Aufgabe ': waleteros: transformClassesWithJarMergingForWith_ImageProcessorDebug'. > Com.android.build.api.transform.TransformException: java.util.zip.ZipException: doppelte Eintrag: com/google/android/gms/intern/zzbax.class

Bitte helfen Sie mir, dieses Problem zu beheben

+0

Sie multidexing aktiviert haben? –

+0

lesen Sie bitte Fehler 'java.util.zip.ZipException: doppelten Eintrag:' @ R.R.M ich glaube nicht, es ist ein Multidex-Problem –

+0

@gowthami können Sie bitte Ihre vollständige build.gradle Datei von App-Modul zeigen? – NarendraJi

Antwort

2

Versuchen Sie folgende Version von Intercom-Bibliothek hinzuzufügen statt Version Sie verwenden:

compile 'io.intercom.android:intercom-sdk-fcm:4.0.0' 

ODER

compile 'io.intercom.android:intercom-sdk-fcm:4.0.4' 
+0

danke es funktioniert für mich – Lassie

+0

Das ist großartig (Y) – NarendraJi

+0

Das klingt toll :) –

Verwandte Themen