问题:
使用Realm时编译报错Error:Conflict with dependency 'com.google.code.findbugs:jsr305' in project ':app'. Resolved versions for app (3.0.2) and test app (2.0.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
解决:
方式一:在app级别的build.gradle的android{}中加
configurations.all {
使用Realm时编译报错Error:Conflict with dependency 'com.google.code.findbugs:jsr305' in project ':app'. Resolved versions for app (3.0.2) and test app (2.0.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
解决:
方式一:在app级别的build.gradle的android{}中加
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' }
方式二:在app级别的build.gradle的androidTestCompile里添加exclude group: 'com.google.code.findbugs'