Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/206.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 错误:任务';的执行失败:应用程序:TransformClasses with Jarmergingfordebug'&燃气轮机;错误_Android - Fatal编程技术网

Android 错误:任务';的执行失败:应用程序:TransformClasses with Jarmergingfordebug'&燃气轮机;错误

Android 错误:任务';的执行失败:应用程序:TransformClasses with Jarmergingfordebug'&燃气轮机;错误,android,Android,请帮我找到解决这个错误的方法。。当我构建我的项目时,我遇到了这样一个错误 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/

请帮我找到解决这个错误的方法。。当我构建我的项目时,我遇到了这样一个错误

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbq.class
请检查我的build.gradle(应用程序级)文件。。。请给我一个移动单词的提示

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.realmilk.app.new"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 6
        versionName "1.0.6"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':volley')
    compile project(':materialviewpager')
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'io.github.yavski:fab-speed-dial:1.0.3'
    compile 'com.wdullaer:materialdatetimepicker:2.2.0'
    compile 'com.jaredrummler:material-spinner:1.0.5'
    compile 'it.neokree:MaterialTabs:0.11'
    compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    compile 'me.tatarka.support:jobscheduler:0.1.1'
    compile 'com.google.android.gms:play-services-auth:9.2.1'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha2'
    compile 'com.google.android.gms:play-services-analytics:8.1.0'
    testCompile 'junit:junit:4.12'
}

请给我你有价值的建议。。。谢谢

您正在使用两种不同版本的播放服务

改变

compile 'com.google.android.gms:play-services-analytics:8.1.0'

因此,auth和analytics服务都有相同的版本

类似的问题


.

删除此依赖项的可能重复编译'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services-analytics:9.2.1'