錯誤:任務':app:transformClassesWithDexForDebug'的執行失敗。錯誤:任務':app:transformClassesWithDexForDebug'的執行失敗Gradle
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 2
這是我的gradle這個建立
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.google.peep"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0.1"
}
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:appcompat-v7:23.1.1'
compile 'com.android.support:support-v13:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:palette-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.jakewharton.timber:timber:4.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.parse.bolts:bolts-tasks:1.3.0'
compile 'com.parse:parse-android:1.11.0'
compile 'com.javon.parserecyclerviewadapter:parserecyclerviewadapter:1.0.4'
}
是的,我沒有按照現在我得到的指示錯誤:執行失敗的任務':app:transformClassesWithJarMerging ForDebug」。 > com.android.build.api.transform.TransformException:java.util.zip.ZipException:重複條目:com/parse/ConnectivityNotifier $ ConnectivityListener.class –
所以你可能在你的項目中有兩個同名的類。如果您編寫了一個名爲ConnectivityListener的類,請嘗試重命名並查看會發生什麼。我會建議你清理/重建你的項目 –