最近项目中用到Google的guava依赖包进行开发:
implementation 'com.google.guava:guava:24.1-jre'
在正常开发完成了,打包测试也没出现什么问题,结果要上线的时候,打release包却爆出一下错误:
Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
Dependency path 'XX:app:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.2-alpha01' --> 'com.google.code.findbugs:jsr305:2.0.1'
Constraint path 'XX:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
百度解决方案无果,看到了stackoverflow的一个解决方案:飞机直达
说在gradle增加
androidTestI