在Android Studio错误“重复条目:com / google / android / gms / analytics / internal / Command $ 1.class”

时间:2017-06-04 09:04:07

标签: android-studio gradle google-analytics google-play-services android-gps

这是我的gradle代码

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    useLibrary 'org.apache.http.legacy'
    compileOptions.encoding = 'ISO-8859-1'
    

    defaultConfig {
        multiDexEnabled true
        applicationId "com.mujihamzale.Ayat-AyatMerdu"
        minSdkVersion 9
        targetSdkVersion 19
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}



dependencies {
    compile 'com.android.support:appcompat-v7:25.0.0'
    compile 'joda-time:joda-time:2.2'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.google.android.gms:play-services-analytics:8.3.0'
    compile files('libs/libGoogleAnalyticsServices.jar')
}

但是当在android studio 2.1.3上运行应用程序时,我收到以下错误:

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/analytics/internal/Command$1.class

我已经好几天寻找解决方案了,请你告诉我如何解决这个问题?

0 个答案:

没有答案