duplicate entry: com/android/volley/AuthFailureError.class while compiling project in android studio

前端 未结 9 1961
长情又很酷
长情又很酷 2020-12-02 00:01

I am using external libraries payu money sdk and linkedin-sdk, both uses volley libraries, which while compiling project gives duplicate entry of AuthFailureError.class

9条回答
  •  心在旅途
    2020-12-02 00:39

    I had this problem when I tried to generate the APK (release) and I solved it changing the linkedin-sdk build.gradle:

    From:

    dependencies {
        compile 'com.android.support:support-annotations:20.0.0'
        compile 'com.android.support:support-v4:21.0.+'
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile files('libs/volley.jar')
        androidTestCompile('junit:junit:4.12') }
    

    To:

    dependencies {
        compile 'com.android.support:support-annotations:20.0.0'
        compile 'com.android.support:support-v4:21.0.+'
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.volley:volley:1.0.0'
        androidTestCompile('junit:junit:4.12') }
    

提交回复
热议问题