question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not resolve com.google.code.findbugs:jsr305:3.0.2, required by truth

See original GitHub issue

Since adding androidx.test.ext:truth:1.1.0 to my app/build.gradle file, I cannot build my test app anymore.

   > Could not resolve com.google.code.findbugs:jsr305:3.0.2.
     Required by:
         project :app > androidx.test.ext:truth:1.1.0 > com.google.guava:guava:26.0-android
      > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
           Dependency path 'regex-crossword-kotlin:app:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
           Constraint path 'regex-crossword-kotlin:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 2.0.1}' because of the following reason: debugRuntimeClasspath uses version 2.0.1
           Constraint path 'regex-crossword-kotlin:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 2.0.1}' because of the following reason: debugRuntimeClasspath uses version 2.0.1
           Dependency path 'regex-crossword-kotlin:app:unspecified' --> 'com.github.facebook.stetho:stetho:6d148f20b96ecb29320cced6617830eda8af0426' --> 'com.google.code.findbugs:jsr305:2.0.1'
           Constraint path 'regex-crossword-kotlin:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 2.0.1}' because of the following reason: debugRuntimeClasspath uses version 2.0.1
           Constraint path 'regex-crossword-kotlin:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 2.0.1}' because of the following reason: debugRuntimeClasspath uses version 2.0.1
           Constraint path 'regex-crossword-kotlin:app:unspecified' --> 'com.google.code.findbugs:jsr305:{strictly 2.0.1}' because of the following reason: debugRuntimeClasspath uses version 2.0.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
cpovirkcommented, May 14, 2019

We don’t have a lot of Gradle expertise. I recommend asking on StackOverflow.

1reaction
yingdingcommented, Dec 5, 2019

this issue might be closed, i just want to add a hint since i still get this issue. I managed to solve it with pin the old com.google.code.findbugs:jsr305:2.0.1 version.

    androidTestImplementation "com.google.code.findbugs:jsr305:2.0.1"
    androidTestImplementation ('androidx.test.ext:truth:1.1.0') {
        exclude group: "com.google.code.findbugs", module: "jsr305"
    }

It seems like the androidx.test.espresso:espresso-core:3.2.0 and com.facebook.stetho:stetho:1.5.1 in my case are the libs using the 2.0.1 version of findbugs. And truth lib is the only one moved to findbugs:3.0.2.

In your individual case, you shall check which version are in conflict.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error:Conflict with dependency 'com.google.code.findbugs ...
google.code.findbugs:jsr305) and it will resolve the problem around the project, using some version of this dependency. Basically it will align the versions of ......
Read more >
com.google.code.findbugs : jsr305 : 3.0.2 - Maven Central
Licenses. The Apache Software License, Version 2.0. Home page, http://findbugs.sourceforge.net/. Source code, https://code.google.com/p/jsr-305/ ...
Read more >
Can't download com.google.code.findbugs:jsr305:1.3.9 ...
FAILURE: Build failed with an exception. What went wrong: Could not resolve all dependencies for configuration ':testRuntime'. Could not resolve ...
Read more >
Guide for migration from FindBugs 3.0 to SpotBugs 3.1
Simply replace com.google.code.findbugs:findbugs with ... JSR305 is already Dormant status, so SpotBugs does not release jsr305 jar file.
Read more >
FindBugs Maven Plugin – Project Dependencies
GroupId ArtifactId Version Type Licenses antlr antlr 2.7.2 jar ‑ backport‑util‑concurrent backport‑util‑concurrent 3.1 jar Public Domain com.apple AppleJavaExtensions 1.4 jar Apple License
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found