導入RN項目后發(fā)現(xiàn)有以下依賴問題,
<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>
現(xiàn)將解決方案記錄下來
在項目的build.gradle添加以下代碼
<pre>
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
</pre>
添加后項目的build.gradle如下
再次build即可