java.util.zip.ZipException:重复输入:com/google/android/gms/internal/zzbq.class [英] java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbq.class

查看:100
本文介绍了java.util.zip.ZipException:重复输入: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'c​​om.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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆