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

前端 未结 8 1857
别跟我提以往
别跟我提以往 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:17

    Run in terminal, inside project folder:

    ./gradlew app:dependencies > dependencies.txt
    

    Then check dependencies.txt to find who is using conflictive dependencies and act accordingly (check for updates, get rid of it, or use exclude as suggested by @Silverstorm)

    0 讨论(0)
  • 2020-12-01 14:24

    Add to build.gradle located in app module

    configurations {
        all {
            exclude module: 'httpclient'
        }
    }
    
    0 讨论(0)
提交回复
热议问题