api - ZipException: duplicate entry: com/android/volley/AuthFailureError -
error:execution failed task ':app:transformclasseswithjarmergingfordebug'. > com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: com/android/volley/authfailureerror.class
and gradle build file:
compile filetree(dir: 'libs', include: ['*.jar']) //compile 'com.android.support:appcompat-v7:25.3.1' //compile 'com.facebook.android:facebook-android-sdk:4.14.0' compile project(path: ':linkedin-sdk') // compile 'com.mcxiaoke.volley:library-aar:1.0.0' // compile 'com.android.volley:volley:1.0.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:design:25.3.1' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.github.paolorotolo:expandableheightlistview:1.0.0' compile 'com.android.support:support-v4:23.0.1' compile 'com.android.support:support-core-utils:25.3.1' compile 'com.google.android.gms:play-services-maps:9.0.1' compile 'com.google.android.gms:play-services-location:9.0.1' compile 'com.squareup.okhttp:okhttp:2.4.0' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:recyclerview-v7:25.1.1' compile 'com.android.support:cardview-v7:25.1.1' compile 'com.facebook.android:facebook-android-sdk:[4,5)' compile 'de.hdodenhof:circleimageview:2.1.0' compile 'com.mcxiaoke.volley:library:1.0.19' testcompile 'junit:junit:4.12' }
the app works fine new version of api.
has problem older versions of api.
you seem confused how volley in app
// compile 'com.android.volley:volley:1.0.0' // compile 'com.mcxiaoke.volley:library-aar:1.0.0' compile 'com.mcxiaoke.volley:library:1.0.19'
those last 2 deprecated. first line correct.
https://developer.android.com/training/volley/index.html
and need remove volley related files libs directory, plus make sure linkedin library isn't using volley
i don't see why need though when have okhttp http calls , glide and picasso image loading
related errors arise mixing 25.3.1
, 23.0.1
, 23.1.1
, , 25.1.1
support libraries. need exact same
Comments
Post a Comment