java.util.zip.ZipException:重复条目:com/google/android/gms/internal/zzbq.class [英] java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbq.class
问题描述
我是 Android 新手.我目前正在使用 android 应用程序,当我尝试运行该应用程序时发生此错误.
I am new in Android. i am currently working in android app and when i try to run the app this error occurs.
我已经研究过但无法解决此错误.
I have researched but cant solve this error.
build.gradle
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
multiDexEnabled true
applicationId "com.tutorialsbuzz.androidfacebook"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:multidex:1.0.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.google.android.gms:play-services-auth:9.2.1'
compile 'com.google.android.gms:play-services:7.5.0'
}
先谢谢你
推荐答案
这背后的原因可能是您为 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.
这篇关于java.util.zip.ZipException:重复条目:com/google/android/gms/internal/zzbq.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!