Dependency conflict error in my Android app which has Android Tests

后端 未结 5 2063
[愿得一人]
[愿得一人] 2020-12-08 13:46

I\'m using AndroidStudio and Gradle to build my Android app with tests in the \'androidTest\' source directory. I added a new dependency and am now getting the following iss

5条回答
  •  萌比男神i
    2020-12-08 14:10

    Gradle has Resolution Strategy Mechanism.

    You can resolve this conflict by adding below lines to app level build.gradle file:

    configurations.all {
        resolutionStrategy {
            force 'com.google.code.findbugs:jsr305:1.3.9', 'com.google.code.findbugs:jsr305:2.0.1'
        }
    }
    

提交回复
热议问题