0
我在運行應用程序時遇到了此Android錯誤。Android studio: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
這裏是我的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:+"
}
我已經試過張貼到其它計算器解答解決方案,但沒有一個是爲我工作。請檢查代碼。 謝謝:)