首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gradle生成错误非零退出值3

gradle生成错误非零退出值3
EN

Stack Overflow用户
提问于 2015-07-11 21:55:14
回答 1查看 219关注 0票数 0

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

提前谢谢你

代码语言:javascript
复制
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')
}
EN

回答 1

Stack Overflow用户

发布于 2015-07-11 21:57:27

在更新到最新的Android Studio后,我也遇到了这个错误。我通过在defaultConfig的build.gradle中添加multiDexEnabled true修复了这个问题。

示例:

代码语言:javascript
复制
defaultConfig {
        applicationId "com.stackoverflow.ranjith.androidprojdel"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31357898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档