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

前端 未结 9 1983
长情又很酷
长情又很酷 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:29

    This is an example how to exclude classes in dependencies when there is duplicate entry in gradle.

     compile ('com.google.api-client:google-api-client-android:1.17.0-rc') {
        exclude module: 'httpclient'
     }
    

    or try with your way just add some more text

    configurations {
         all*.exclude group: 'com.android.support', module: 'support-v4'
    }
    

    So, now what you have to do is

    Search CTRL+SHIFT+N in android studio for the class AuthFailureError.class See which jar contains this and remove it like above (This is just as an example/You have to figure out the duplicate class and manually remove it)

提交回复
热议问题