我在更新我的SDK for 23后,在执行我的应用时出现此错误。 错误:任务':app:dexDebug'执行失败。
com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java ''以非零退出值1结束
我的build.gradle外观就像
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId 'com.movieschannel'
minSdkVersion 14
targetSdkVersion 23
versionCode 2
versionName "1.0.01"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.squareup.picasso:picasso:2.5.1'
compile 'ch.acra:acra:4.6.1'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.jpardogo.materialtabstrip:library:1.0.9'
compile 'com.google.android.gms:play-services-identity:7.3.0'
}
答案 0 :(得分:1)
出现这种情况有很多原因。有时' 清洁'该项目将解决它。请查看此处Android java.exe finished with non-zero exit value 1
发布的解决方案