2017-09-25 4 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' 

나는 이것이 내가

오류를 얻고있다 런타임 오류가이 라인

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

를 추가 afetr이 문제를 얻고있다 : 실행 실패 작업 ': waleteros : transformClassesWithJarMergingForWith_ImageProcessorDebug'에 대한. > com.android.build.api.transform.TransformException : java.util.zip.ZipException은 : 중복 된 항목 : COM/구글/안드로이드/GMS/내부/zzbax.class이 문제를 해결하기 위해 도와주세요

+0

당신이 multidexing을 사용할 수 있나요? –

+0

오류'java.util.zip.ZipException을 읽어주십시오 : 중복 항목 :'@ R.R.M 그 multidex 문제가 있다고 생각하지 않습니다 –

+0

@ gowthami 당신은 전체 응용 프로그램 모듈의 build.gradle 파일을 보여 주시겠습니까? – NarendraJi

답변

2

사용하는 인터콤 라이브러리 대신 버전의 다음 버전을 추가하려고 :

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

또는

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

감사합니다. 나를 위해 일하고 있습니다. – Lassie

+0

그레이트 (Y) – NarendraJi

+0

그 소리가 아주 좋네요. –

관련 문제