Gradle-java.exe以非零退出值1结束
我无论如何也解决不了这个问题。我在这方面等待你的帮助Gradle-java.exe以非零退出值1结束,java,android,gradle,Java,Android,Gradle,我无论如何也解决不了这个问题。我在这方面等待你的帮助 apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "23.0.1" defaultConfig { multiDexEnabled = true applicationId "com.apaweb.track" minSdkVersion 16
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
defaultConfig {
multiDexEnabled = true
applicationId "com.apaweb.track"
minSdkVersion 16
targetSdkVersion 22
versionCode 14
versionName "2.0.3"
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.+'
compile 'com.android.support:design:22.+'
compile 'com.android.support:cardview-v7:22.+'
compile 'com.android.support:recyclerview-v7:22.+'
compile 'com.google.android.gms:play-services:8.1.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.tuenti.smsradar:library:1.0.4'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.android.support:multidex:1.0.0'
compile 'com.koushikdutta.ion:ion:2.+'
compile 'com.koushikdutta.async:androidasync:2.+'
}
我认为这就是更新java后的问题所在。
JDK 1.7
、JDK 1.8
和JDK 9
安装在系统中。我现在正在使用JDK1.7
错误:任务“:app:transformClassesWithDexForDebug”的执行失败。com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:org.gradle.process.internal.exeception:process'command'C:\Program Files\Java\jdk1.7.0\u 80\bin\Java.exe''以非零退出值1结束
我解决了这个问题。通过升级Android studio和gradle版本。
multiDexEnabled true
。删除=
签名并使用编译器DKVersion 23
NullPointerException:null,给出了此错误。报告java
打印的错误消息会更切题一些,而不仅仅是声明它“以非零退出值退出”的冗余信息。