gradle构建错误非零退出值3

时间:2015-07-11 13:55:14

标签: android

您正在编译我的项目时收到一条错误消息,例如此java.exe以非零退出值

结束

enter image description here

提前谢谢

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')
}

1 个答案:

答案 0 :(得分:0)

我在更新到最新的Android Studio后也遇到此错误。我通过在defaultConfig中的multiDexEnabled true中添加build.gradle来解决此错误。

示例:

defaultConfig {
        applicationId "com.stackoverflow.ranjith.androidprojdel"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }