找不到'com.google.code.findbugs:jsr305'的版本

时间:2019-04-03 18:57:45

标签: java android android-studio android-debug

thats the error

  

找不到以下版本的“ com.google.code.findbugs:jsr305”   满足版本限制

   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305:3.0.2'
   Constraint path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305:3.0.2'
   Constraint path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305:3.0.2'
   Constraint path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305:3.0.2'
   Constraint path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305:3.0.2'
   Constraint path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305:3.0.2'
   Constraint path 'Kmrider5:app:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '1.3.9' because of the following reason: debugRuntimeClasspath uses version 1.3.9
   Dependency path 'Kmrider5:app:unspecified' --> 'com.android.support.test.espresso:espresso-core:3.0.2' --> 'com.google.code.findbugs:jsr305:2.0.1'
   Dependency path 'Kmrider5:app:unspecified' --> 'com.google.android.libraries.places:places:1.0.0' --> 'com.google.guava:guava:23.5-android' --> 'com.google.code.findbugs:jsr305:1.3.9'

2 个答案:

答案 0 :(得分:0)

可能是因为它被移动了。这是一个解释链接。

https://code.google.com/archive/p/findbugs/

答案 1 :(得分:0)

这意味着您将导入一些gradle库,具体取决于'com.google.code.findbugs:jsr305'但版本不同。 您应该评估是更新库版本还是从某些库中排除对findbugs库的隐式导入。

当我将Espresso添加到已经创建的项目中并通过从Espresso的库导入中排除findbug来解决时,出现了此错误。

解决方案

androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2', {
    exclude group: 'com.google.code.findbugs', module: 'jsr305'
}
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2', {
    exclude group: 'com.google.code.findbugs', module: 'jsr305'
}