我也收到此错误消息:
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zznn.class
这是我的依赖块gradle。请帮忙。我也有我的multidexenabled true
compile 'com.android.volley:volley:1.0.0'
compile project(':BaseGameUtils')
compile fileTree(dir: 'libs', include: ['*.jar'])
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'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-appindexing:11.0.2'
compile 'com.google.android.gms:play-services-ads:11.0.2'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile "com.squareup.picasso:picasso:2.4.0"
compile 'com.github.bumptech.glide:glide:3.5.2'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:multidex:1.0.1'
答案 0 :(得分:0)
我们要做的是删除额外的包。
根据您的问题,我们必须知道com/google/android/gms/internal/zznn.class
所在的包裹。
然后,我们将找到该包并将其删除。
答案 1 :(得分:0)
根据您的日志
COM /谷歌/机器人/克/内部/ zznn.class
重复,因此对于该解决方案,您必须删除该类文件或排除该库,如
编译'com.google.android.gms:play-services-ads:11.0.2'{exclude 模块:“moduleToRemove”}