commons-validator and error “commons-logging defines classes that conflict with classes now provided by Android”

前端 未结 1 414
渐次进展
渐次进展 2021-01-26 11:23

After recent Android Studio update, I can build and run an app in the debug mode, but am no longer able to build the release version due to the following error:

相关标签:
1条回答
  • 2021-01-26 11:54

    The problem is with commons-logging. So it must be excluded. Add the following code in app/build.gradle. It should work.

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