Android-Gradle - java.util.zip.ZipException: duplicate entry: android/support/v7/widget/PositionMap.class -


i have problem duplicate class in dependencies.

apply plugin: 'com.android.application'  android {    compilesdkversion 23    buildtoolsversion "23.0.1"    defaultconfig {        applicationid 'br.com.etm.checkseries'        minsdkversion 15        targetsdkversion 23        versioncode 1        versionname "1.0"        multidexenabled true    }    buildtypes {        release {            minifyenabled false            proguardfiles getdefaultproguardfile('proguard-android.txt'),    'proguard-rules.pro'     } } productflavors { }  } dependencies {   compile filetree(include: ['*.jar'], dir: 'libs')   testcompile 'junit:junit:4.12'    compile 'com.android.support:appcompat-v7:23.1.0'   compile ('com.android.support:recyclerview-v7:23.1.0'){       exclude module : 'support-v4'       exclude module : 'appcompat-v7'   }    compile('com.mikepenz:materialdrawer:4.3.8@aar') {       transitive = true       exclude module: 'appcompat-v7'       exclude module: 'support-v4'       exclude module: 'recyclerview-v7'   }    compile project(':unity-ads-1.5.6')    compile 'com.android.support:cardview-v7:23.3.0'   compile 'com.firebase:firebase-client-android:2.5.2+'   compile 'com.nineoldandroids:library:2.4.0'   compile 'com.daimajia.easing:library:1.0.1@aar'   compile 'com.daimajia.androidanimations:library:1.1.3@aar'   compile('com.melnykov:floatingactionbutton:1.3.0') {       exclude module: 'recyclerview-v7'   }   compile 'com.squareup.picasso:picasso:2.5.2'   compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'   compile('com.google.android.gms:play-services-plus:8.4.0') {       exclude module: 'support-v4'   }   compile('com.google.android.gms:play-services-auth:8.4.0') {       exclude module: 'support-v4'       exclude module: 'play-services-base'   }   compile('com.google.android.gms:play-services-ads:8.4.0') {      exclude module: 'support-v4'   } 

}

always , when run application in emulator api 16, error occurs:

error:execution failed task ':app:transformclasseswithjarmergingfordebug'. com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: android/support/v7/widget/positionmap.class

but when run in emulator api 20, project run smoothly.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -