Java 错误:任务';的执行失败:应用程序:preDexDebug'>。。。以非零值1结束

Java 错误:任务';的执行失败:应用程序:preDexDebug'>。。。以非零值1结束,java,android,android-studio,Java,Android,Android Studio,我在我的项目中添加了一个库,但是库中有一些我在我的应用程序中使用过的jar包,所以出现了错误“finished with non-zero value 2”,在我修改jar包版本后,出现了错误“error:Execution failed for task”:app:preDexDebug.>…finished with non-zero value 1”,我不知道如何解决它 应用程序buildle.gradle: `apply plugin: 'com.android.application'

我在我的项目中添加了一个库,但是库中有一些我在我的应用程序中使用过的jar包,所以出现了错误“finished with non-zero value 2”,在我修改jar包版本后,出现了错误“error:Execution failed for task”:app:preDexDebug.>…finished with non-zero value 1”,我不知道如何解决它 应用程序buildle.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')
} `
library 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包无法打开。我从其他项目中删除了它并添加了jar包