导入RN项目后发现有以下依赖问题,
<pre>
Warning:Conflict with dependency 'com.google.code.findbugs:jsr305'. Resolved versions for app (3.0.0) and test app (2.0.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
</pre>
现将解决方案记录下来
在项目的build.gradle添加以下代码
<pre>
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
</pre>
添加后项目的build.gradle如下
再次build即可