2016-12-03 4 views
0

Androidプロジェクトでこのエラーが発生しました。Androidスタジオ:java.util.zip.ZipException:アプリケーションの実行中に重複したエントリエラーが発生しました

Error:Execution failed for task :app:transformClassesWithJarMergingForDebug. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzaj.class

ここで私は他のstackoverflowの答えに掲載のソリューションを試してみましたが、どれも私のために働いていなかった私のbuild.gradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 

    defaultConfig { 
     applicationId "com.akapoor.kiittimetabletest1" 
     manifestPlaceholders = [manifestApplicationId: "${applicationId}", 
           onesignal_app_id: "6cebaxxx-xxxx-xxxx-89af-55fbddb523ea", 
           onesignal_google_project_number: "4283878xxx"] 
     minSdkVersion 15 
     targetSdkVersion 23 
     versionCode 5 
     versionName "2.0" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 

    compile 'com.android.support:support-v4:23.0.1' 

    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile 'com.android.support:design:23.4.0' 
    compile 'de.hdodenhof:circleimageview:1.3.0' 
    compile 'com.android.support:support-v4:23.4.0' 
    compile 'com.google.android.gms:play-services-ads:9.4.0' 
    compile 'com.pushbots:pushbots-lib:[email protected]' 
    compile 'com.mcxiaoke.volley:library:1.0.19' 
    compile 'com.android.support:cardview-v7:23.4.0' 

    compile 'com.onesignal:OneSignal:[email protected]' 
    compile 'com.google.android.gms:play-services-gcm:+' 
    compile 'com.google.android.gms:play-services-analytics:+' 
    compile "com.google.android.gms:play-services-location:+" 
} 

です。コードを確認してください。 は、

compile 'com.google.android.gms:play-services-gcm:+' 
compile 'com.google.android.gms:play-services-analytics:+' 
compile "com.google.android.gms:play-services-location:+" 

は、すべてのバージョンが一致していることを確認してくださいプラスではないしてください、あなた:)

答えて

関連する問題