Coding⏱️ 2 min read📅 2026-06-03

How to Fix: Error:Conflict with dependency 'com.google.code.findbugs:jsr305'

Error in Android App build configuration due to conflicting dependency. Ensure correct plugin versions and configurations.

Quick Answer: Check the 'com.google.code.findbugs:jsr305' dependency version and update it to a compatible version with your Android Studio and build tools.

The error you're experiencing is due to a dependency conflict between the FindBugs plugin and another library. To resolve this issue, follow these steps:

🛑 Root Causes of the Error

  • The FindBugs plugin has been deprecated and removed from the Android SDK. This means that it's no longer compatible with newer versions of Android.

🛠️ Step-by-Step Verified Fixes

Method 1: Disable FindBugs Plugin

  1. Step 1: Open the build.gradle file in your Android App module and comment out or remove the following line:
  2. // apply plugin: 'com.google.code.findbugs:jsr305'

Method 2: Update Android SDK

  1. Step 1: Open the Android Studio settings by pressing Ctrl + Shift + Alt + S and navigate to Build, Execution, Deployment > Build Tools > Android SDK
  2. Step 2: Update your Android SDK to the latest version.

💡 Conclusion

By following these steps, you should be able to resolve the conflict with the FindBugs plugin and get your project up and running smoothly.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions