我在' libs'中添加了一些新库,然后当我尝试通过gradle文件编译文件时,它向我显示了错误: 错误:任务':app:preDexDebug'。
的执行失败com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令' C:\ Program Files \ Java \ jdk1.8.0_40 \ bin \的java.exe''完成非零退出值1 我正在添加build.gradle代码(它是使用Google App Engine服务器的servlet的gradle)。 我过去看过几个类似的问题,但没有一个解决方案解决了我的问题。
// If you would like more information on the gradle-appengine-plugin please refer to the github page
// https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.14'
}
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.14'
compile 'javax.servlet:servlet-api:2.5'
compile 'com.google.appengine.tools:appengine-gcs-client:0.4.1'
compile 'com.google.api-client:google-api-client-java6:1.11.0-beta'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.13.1-beta'
compile 'com.parse.bolts:bolts-android:1.+'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
}