java.util.zip.ZipException:重复条目:org / apache / http / HttpMessage.class

时间:2016-04-01 04:30:12

标签: java

我收到此错误:

任务执行失败':app:transformClassesWithJarMergingForDebug'。

  

com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:org / apache / http / HttpMessage.class

这是我的应用级build.gradle:

申请插件:' com.android.application'

android {     compileSdkVersion 23     buildToolsVersion" 23.0.3"

defaultConfig {
    applicationId "com.example.man.myapplication"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
packagingOptions {
    exclude 'META-INF/NOTICE.txt' // will not include NOTICE file
    exclude 'META-INF/LICENSE' // will not include LICENSE file
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/LICENSE.txt'
}

}

依赖项{

compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/httpcore-4.4.1.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/jna-4.1.0.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/commons-codec-1.9.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/httpclient-win-4.5.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/jsoup-1.8.3.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/httpclient-4.5.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/httpmime-4.5.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/jna-platform-4.1.0.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/commons-logging-1.2.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/fluent-hc-4.5.jar')
compile files('C:/Users/Admin/Videos/CityReg/MyApplication/libs/httpclient-cache-4.5.jar')

}

我收到此错误的原因是什么?感谢

0 个答案:

没有答案