我正在運行時的重複項問題,如果我對講庫添加到我的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
請幫我解決這個問題
是否啓用multidexing? –
請閱讀error'java.util.zip.ZipException:重複的條目:'@ R.R.M我不認爲它是一個multidex問題 –
@gowthami你可以請出示應用模塊的完整的build.gradle文件? – NarendraJi