正在Android Studio中開發應用程序。執行時出現錯誤Android:執行任務失敗':app:dexDebug'
錯誤:執行任務':app:dexDebug'失敗。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 2
的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.polus.binil.recyclerviewdemo"
minSdkVersion 21
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:recyclerview-v7:22.1.1'
compile 'com.android.support:recyclerview-v7:+'
compile "com.squareup.picasso:picasso:2.4.0"
}
任何一個可以請幫助解決這個問題
類似的問題試試這個http://stackoverflow.com/questions/29296650/android-with-gradle-java-finished-with-non-zero-exit-value-2 – Raghavendra
嘗試運行'./gradlew assembleDebug --debug '得到完整的堆棧跟蹤。 –
此外,它可能是由recyclerview的重複依賴造成的。 –