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

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

    I had the similar issue while making build on Jenkins, weirdly it was working fine on my local machine. After adding below exclude it worked both on local machine and Jenkins.

    android{
    configurations {
        all*.exclude group: 'com.android.volley'
    }}
    

    I have added configurations block to my app's build.gradle inside android section.

    If it matter's Compile SDK version is 22 and Build Tools version is 25.0.0

    This worked like a charm.

提交回复
热议问题