您好,当我编译我的项目时,我收到一条错误消息,像这样的java.exe finished with non -零exit value

提前谢谢你
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.sentientit.theiWedplanner"
minSdkVersion 9
targetSdkVersion 21
versionCode 13
versionName "11.2"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:22.2.0'
compile 'joda-time:joda-time:2.4'
compile files('libs/bugsense-3.6.1.jar')
compile files('libs/core.jar')
compile files('libs/MtUtils.jar')
compile files('libs/socialauth-android-3.2.jar')
compile files('libs/universal-image-loader-1.6.1-with-src.jar')
compile files('libs/zxingjar-1.1.jar')
compile 'com.google.android.gms:play-services:7.5.0'
compile files('libs/ksoap2.jar')
compile 'com.android.support:multidex:1.0.1'
compile files('libs/twitter4j.jar')
}发布于 2015-07-11 21:57:27
在更新到最新的Android Studio后,我也遇到了这个错误。我通过在defaultConfig的build.gradle中添加multiDexEnabled true修复了这个问题。
示例:
defaultConfig {
applicationId "com.stackoverflow.ranjith.androidprojdel"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}https://stackoverflow.com/questions/31357898
复制相似问题