1
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/http/ConnectionClosedException.class

And There are two warnings, as shown below:

1) Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.

2) Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    packagingOptions {
        exclude 'META-INF/NOTICE' // will not include NOTICE file
        exclude 'META-INF/LICENSE' // will not include LICENSE file
        exclude 'META-INF/DEPENDENCIES'
       // exclude'org.apache.httpcomponents:httpclient:4.0.1'

    }

    defaultConfig {
        applicationId "com.omgproductionsinc.panicsosplus"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        // Enabling multidex support.
        multiDexEnabled true

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    //compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':FacebookSDK')
    compile files('libs/httpclient-4.3.5.jar')
    compile files('libs/httpclient-cache-4.3.5.jar')

    compile files('libs/httpmime-4.3.5.jar')
    compile files('libs/splunk-mint-4.0.7.jar')
    compile (files('libs/twitpic4j.jar'))
    compile files(('libs/twitter4j-core-4.0.1.jar'))
    compile files(('libs/sendgrid-0.1.2-jar.jar'))
    compile files('libs/org.apache.http.legacy.jar')
    compile ('oauth.signpost:signpost-commonshttp4:1.2.1.2')
    compile ('oauth.signpost:signpost-core:1.2.1.2')
    compile 'com.google.code.gson:gson:2.8.0'
    compile 'com.google.android.gms:play-services:5.0.89'

    //compile 'org.lucee:httpcomponents-httpcore:4.3.5'

}
Kuldeep
  • 123
  • 1
  • 12
  • is it the same http://stackoverflow.com/questions/26966843/java-util-zip-zipexception-duplicate-entry-during-packagealldebugclassesformult – Ranjit Dec 23 '16 at 06:30
  • not same for your link quition that quition multidex error so. – Kuldeep Dec 23 '16 at 06:35

0 Answers0