且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2021-09-26 05:57:17

这背后的原因可能是您为 gms 包含了两个不同的版本.此外,如果您已包含完整的软件包,则无需包含第二个 'compile 'com.google.android.gms:play-services:7.5.0'' 如果您只需要来自 google 的身份验证服务,则不要包含完整的打包它会超过 65k 个方法,并且会有重复的机会.包括这个

The reason behind that may be you have include two different versions for gms. Also if you have included the complete package then there is no need to include the second 'compile 'com.google.android.gms:play-services:7.5.0'' If you need only auth services from google then dont include the complete package it ll exceed 65k methods and duplicacy chances will be there. Include this

编译'com.google.android.gms:play-services-auth:9.4.0'

compile 'com.google.android.gms:play-services-auth:9.4.0'

并从您的代码中删除

编译 'com.google.android.gms:play-services-auth:9.2.1' 编译'com.google.android.gms:play-services:7.5.0'

compile 'com.google.android.gms:play-services-auth:9.2.1' compile 'com.google.android.gms:play-services:7.5.0'

执行它并让我知道一次.

Execute it and let me know once.