問題描述
我正在嘗試運(yùn)行我的項(xiàng)目,但我不斷收到此錯誤:
I am trying to run my project, but I keep getting this error:
錯誤:任務(wù) ':app:preDexDebug' 執(zhí)行失敗.com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command'/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java'' 完成非零退出值 3
Error:Execution failed for task ':app:preDexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3
這是我的畢業(yè)典禮:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.blume.android"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(path: ':endpoints-backend', configuration: 'android-endpoints')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:6.5.87'
compile project(path: ':cloud-backend', configuration: 'android-endpoints')
compile 'javax.persistence:persistence-api:1.0'
compile project(':endpoints-backend')
}
感謝所有幫助.
推薦答案
我只是換了
"編譯 fileTree(dir: 'libs', include: ['*.jar'])"
"compile fileTree(dir: 'libs', include: ['*.jar'])"
到
"提供 fileTree(dir: 'libs', include: ['*.jar'])".
"provided fileTree(dir: 'libs', include: ['*.jar'])".
解決了我的問題
這篇關(guān)于以非零退出值 3 結(jié)束的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!