2017-02-25 176 views
-1

我正在开发一个android应用程序。每次我尝试运行这个应用程序,我得到这个错误。Gradle重复项:java.util.zip.ZipException com/google/android/gms/auth/api/signin/internal/zzf.class

**“错误:执行失败的任务‘:应用程序:transformClassesWithJarMergingForDebug’

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/auth/api/signin/internal/zzf.class.**"

我试图在这个和其他论坛的所有解决方案,但没有任何工程

这是我的构建。 gradle这个(模块:APP)在此先感谢

apply plugin: 'com.android.application' 

android { 
    packagingOptions { 

     exclude 'META-INF/DEPENDENCIES' 
     exclude 'META-INF/LICENSE' 
     exclude 'META-INF/LICENSE.txt' 
     exclude 'META-INF/license.txt' 
     exclude 'META-INF/NOTICE' 
     exclude 'META-INF/NOTICE.txt' 
     exclude 'META-INF/notice.txt' 
     exclude 'META-INF/ASL2.0' 

    } 
    dexOptions { 
     javaMaxHeapSize "4g" 
    } 
    compileSdkVersion 25 
    buildToolsVersion "25.0.1" 
    defaultConfig { 
     applicationId "etc.solved.problem.gideon.androidalertapp" 
     minSdkVersion 16 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     multiDexEnabled true 
    } 

    compileOptions { 
     sourceCompatibility JavaVersion.VERSION_1_7 
     targetCompatibility JavaVersion.VERSION_1_7 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    configurations { 
    all*.exclude group: 'com.android.support', module: 'play-services-tasks-10.0.1' 
}} 

    ependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    //compile 'com.parse:parse-android:1.10.3' 
    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.0.1' 
    compile 'com.google.firebase:firebase-auth:10.0.1' 
    compile 'com.google.firebase:firebase-database:10.0.1' 
    compile 'com.google.firebase:firebase-core:10.0.1' 
    compile 'com.firebase:firebase-client-android:2.5.2' 
    compile 'com.android.support:multidex:1.0.1' 

    compile 'com.firebaseui:firebase-ui:1.0.0' 
    testCompile 'junit:junit:4.12' 
} 

apply plugin: 'com.google.gms.google-services' 
+1

你应用gms.google服务插件两次或两次是一个错字?因为如果你是,那可能是问题所在。 –

回答

0

您正在使用com.firebase:。火力点,客户端的Android版本:2.5.2和新的SDK,com.google.firebase:火力数据库:10.0 。 1。你不能在同一个应用程序中一起使用它们。

退房火力doc

相关问题