commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update

前端 未结 8 1914
别跟我提以往
别跟我提以往 2020-12-01 13:34

I have updated Android Studio to version 3 and now seems unable to compile my project previously compiled without errors.

The error message is the follow

8条回答
  •  广开言路
    2020-12-01 14:07

    Got the same issue. I have done below changes

     configurations {
        all{
            exclude group: 'commons-logging', module: 'commons-logging'
            exclude group: 'org.apache.httpcomponents'
        }
    }
    
    
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'org/apache/http/version.properties'
        exclude 'org/apache/http/client/version.properties'
    }
    

提交回复
热议问题