gradle - 'AllDevelopmentDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: retrofit/android/AndroidApacheClient.class -
my build.gradle
:
apply plugin: 'com.android.application' apply plugin: 'io.fabric' buildscript { repositories maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } android { compilesdkversion 22 buildtoolsversion "23.0.1" defaultconfig { applicationid "com.myapp" minsdkversion 19 targetsdkversion 22 versioncode 1 versionname "1.0" multidexenabled true } productflavors { production { applicationid "com.myapp" } development { applicationid "com.myapp.development" } staging { applicationid "com.myapp.staging" } qa { applicationid "com.myapp.qa" } } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } sourcesets { main { res.srcdirs = ['src/main/res', 'src/main/res/drawable', 'src/main/res/views/activities', 'src/main/res/anim'] } } } repositories { mavencentral() maven { url 'https://maven.fabric.io/public' } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile project(':facebook') compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.squareup.picasso:picasso:2.5.2' compile files('libs/gson-2.3.1.jar') compile files('libs/retrofit-1.9.0.jar') compile('com.digits.sdk.android:digits:1.8.0@aar') { transitive = true; } }
i have tried enabling multidex
, no fabric support forums too.
also tried excluding gson
module digits
compile('com.digits.sdk.android:digits:1.8.0@aar') { transitive = true; exclude module: 'gson'; }
ps: want use phone number verification/signin feature, no twitter sign-in feature required. using retrofit , picasso.
your conflict on retrofit
, not gson
.
change exclude module: 'gson'
exclude module: 'retrofit'
in digits
dependency.
Comments
Post a Comment