2017-09-25 38 views
2

我正在運行時的重複項問題,如果我對講庫添加到我的gradle產出。了重複錄入java.util.zip.ZipException:重複的條目:

這是我的總的應用程序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' 

我得到這個問題afetr加入這一行

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

這是我得到

錯誤運行時錯誤:執行失敗任務 ':waleteros:transformClassesWithJarMergingForWith_ImageProcessorDebug'。 > com.android.build.api.transform.TransformException:java.util.zip.ZipException:重複的條目:COM /谷歌/安卓/ GMS /內部/ zzbax.class

請幫我解決這個問題

+0

是否啓用multidexing? –

+0

請閱讀error'java.util.zip.ZipException:重複的條目:'@ R.R.M我不認爲它是一個multidex問題 –

+0

@gowthami你可以請出示應用模塊的完整的build.gradle文件? – NarendraJi

回答

2

嘗試添加對講庫,而不是版本以下的版本使用的是:

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

OR

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

謝謝你這是爲我工作 – Lassie

+0

那大(Y) – NarendraJi

+0

聽起來不錯:) –

相關問題