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

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

    Use the below command in Android studio terminal to get the dependency conflict data - [Replace with your app Name]

    ./gradlew -q ::dependencyInsight --dependency volley --configuration compile
    

    If you are using latest Volley library from android [https://github.com/google/volley/releases], add below two lines in your build.gradle file under each of the compile library entries that has conflict.

    Ex:

    compile('com.xyz:abc:1.1.0-RELEASE') {
            exclude module: 'library'
            exclude group: 'com.mcxiaoke.volley'
    }
    

提交回复
热议问题