繁体   English   中英

错误:任务':app:preDexDebug'的执行失败。 >…以非零值1结束

[英]Error:Execution failed for task ':app:preDexDebug'. > … finished with non-zero value 1

我向项目中添加了一个库,但是该库中有一些我在应用程序中使用过的jar包,因此在修改jar包版本后,它会显示错误“用非零值2结束”。错误“错误:任务':app:preDexDebug'的执行失败。> ...完成了非零值1”,我不知道该如何解决。app buidle.gradle:

`apply plugin: 'com.android.application'

android {

    packagingOptions{
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }
    lintOptions {
        abortOnError false
    }

    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.fengmanlou.logintest"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 2
        versionName "2.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:22.0.0'
    compile project(':slibingtab')
    compile project(':leanchatlib')
    compile files('libs/weibo.sdk.android.sso.jar')
    compile files('libs/Java-WebSocket-1.2.0-leancloud.jar')
    compile files('libs/qq.sdk.1.6.1.jar')
    compile files('libs/httpmime-4.2.4.jar')
    compile files('libs/fastjson-1.1.37-leancloud.jar')
    compile files('libs/avoscloud-statistics-v3.1.1.jar')
    compile files('libs/avoscloud-sdk-v3.1.4.jar')
    compile files('libs/avoscloud-push-v3.1.4.jar')
    compile files('libs/android-async-http-1.4.6.jar')
    compile files('libs/android_api_1.1_forsdk.jar')
    compile files('libs/BaiduLBS_Android.jar')
    compile files('libs/galaxy_mini.jar')
    compile files('libs/universal-image-loader-1.9.3.jar')
    compile files('libs/avoscloud-sns-v3.1.1.jar')
    compile files('libs/avoscloud-search-v3.1.1.jar')
    compile files('libs/weibosdkcore.jar')
    compile files('libs/litepal.xml-1.2.0.jar')
    compile project(':pulltorefresh')
    compile files('libs/avoscloud-feedback-v3.1.1.jar')
    compile files('libs/jsoup-1.8.1.jar')
    compile project(':slibingmenu')
} `

库build.gradle:

apply plugin: 'com.android.library'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:22.0.0'
    compile files('libs/android-async-http-1.4.6.jar')
    compile files('libs/avoscloud-push-v3.1.4.jar')
    compile files('libs/avoscloud-sdk-v3.1.4.jar')
    compile files('libs/butterknife-6.1.0.jar')
    compile files('libs/eventbus-2.4.0.jar')
    compile files('libs/fastjson-1.1.37-leancloud.jar')
    compile files('libs/httpmime-4.2.4.jar')
    compile files('libs/Java-WebSocket-1.2.0-leancloud.jar')
    compile files('libs/prettytime-3.2.5.Final.jar')
    compile files('libs/universal-image-loader-1.9.3.jar')
}

这是我第一次使用stackoverflow提出问题,请告诉我如何解决。谢谢!

我也不知道如何解决这个问题,但是项目成功建立,有一个无法打开的jar包。 我将其删除,然后从其他project.jar文件中添加jar包。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM