java.util.zip.ZipException:重复条目:com / google / android / gms / internal / zzaqa $ zza.class

问题描述 投票:0回答:1

I'm not sure what this error means.

我的依赖文件是

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.firebase:firebase-auth:10.2.6'
compile 'com.android.support:design:25.3.1'
compile 'com.weiwangcn.betterspinner:library:1.1.0'
compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.google.firebase:firebase-storage:10.2.6'
testCompile 'junit:junit:4.12'
compile 'com.android.support:recyclerview-v7:25.2.0'
compile 'com.android.support:cardview-v7:25.2.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.google.firebase:firebase-appindexing:10.0.0'

//adding glid library
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
    transitive = true;
}

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

android multidex android-multidex
1个回答
0
投票

在你的gradle中,你有两个不同版本的google依赖项10.0.0和10.2.6

compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.google.firebase:firebase-storage:10.2.6'
compile 'com.google.firebase:firebase-auth:10.2.6'
compile 'com.google.firebase:firebase-appindexing:10.0.0'

您的Google依赖项必须具有相同的依赖项版本

尝试改变这样:

 compile 'com.google.firebase:firebase-database:10.2.6'
 compile 'com.google.firebase:firebase-storage:10.2.6'
 compile 'com.google.firebase:firebase-auth:10.2.6'
 compile 'com.google.firebase:firebase-appindexing:10.2.6'
© www.soinside.com 2019 - 2024. All rights reserved.