Yogesh Tatwal Yogesh Tatwal - 9 days ago 5
Java Question

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug com.android.build.api.transform.TransformException:

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion '24.0.0'
// useLibrary 'org.apache.http.legacy'

defaultConfig {
applicationId "com.atmh"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
multiDexEnabled true

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

configurations {
all*.exclude group: 'com.android.support', module: 'support-annotations'}}
dependencies {
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.maksim88:PasswordEditText:v0.8'
compile 'com.crystal:library:1.0.0'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.weiwangcn.betterspinner:library-material:1.1.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.android.gms:play-services:9.6.1'
compile 'it.neokree:MaterialTabs:0.11'
compile 'com.android.support:multidex:1.0.0'
compile 'org.apache.httpcomponents:httpmime:4.2.3'
compile 'com.google.android.gms:play-services-gcm:9.6.1'
compile 'com.android.support:support-v4:23.0.1'
}


java.util.zip.ZipException: duplicate entry: org/apache/http/HttpEntity.class

Answer

Finally i got solution for this. compile 'com.crystal:library:1.0.0' it was victim lib, Just replace it and working fine.

Comments