我在尝试生成签名的apk时遇到此错误

时间:2016-11-11 12:25:14

标签: android release

我在尝试生成签名的apk时遇到此错误:

  

错误:任务执行失败   :应用程序:transformClassesWithJarMergingForRelease”。    com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / android / volley / AuthFailureError.class

的build.gradle:

apply plugin: 'com.android.application'

android {

compileSdkVersion 23

buildToolsVersion "23.0.2"

useLibrary 'org.apache.http.legacy'
defaultConfig {
    applicationId "com.example.raz.base"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled = true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
 }
}

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

testCompile 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:23.1.1'

compile 'com.google.android.gms:play-services-appindexing:7.5.0'

compile 'com.mcxiaoke.volley:library:1.+'

compile 'org.apache.httpcomponents:httpcore:4.4.1'

compile 'org.apache.httpcomponents:httpclient:4.5'

}

0 个答案:

没有答案