我在構建Android上的libGDX項目時遇到了一些麻煩。當我在Android Studio> Build中選擇「Build APK」時。在Android Stduio中無法「構建APK」[libGDX]
麻煩: 錯誤:執行失敗的任務':android:transformClassesWithDexForRelease'。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' finished with non-zero exit value 1
我做了什麼: - 當然,做了很多谷歌; - 重新安裝的JDK; - 試圖改變gradle配置中的小設置; - 試圖更改SDK;
並沒有什麼工作之上的......
所以這是我的build.gradle:
android {
buildToolsVersion '24.0.3'
compileSdkVersion 24
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
instrumentTest.setRoot('tests')
}
defaultConfig {
applicationId "com.wlodek.oneman"
minSdkVersion 8
targetSdkVersion 24
}
productFlavors {
}
dexOptions {
incremental true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
buildType {
debuggable false
jniDebuggable false
}
}
[Android java.exe完成非零退出值1]的可能重複(http://stackoverflow.com/questions/29045129/android-java-exe-finished-with-non-zero-exit-value -1) –