FindBugs IDEA - ClassNotFoundException com.google.wireless.android.sdk.stats.IntellijIndexingStats

Solution 1:

To Solve this problem in Android Studio go to:

File
-> Settings
-> Build, Execution, Deployment
-> Compiler -> Java Compiler

Change javac to eclipse, and apply.

Solution 2:

For what it's worth i got this exact error by importing a project started with IntelliJ Pro and imported into Android Studio - deleting the .idea directory at the root of the project and re-importing the project with Android Studio cleared it.

Solution 3:

I think this may be the answer.

SpotBugs is the spiritual successor of FindBugs, carrying on from the point where it left off with support of its community.

The FindBugs Plugin

Since FindBugs is unmaintained and does not support bytecode compiled for Java 9 and above, the FindBugs plugin has been deprecated and is scheduled to be removed in Gradle 6.0. Please consider using the SpotBugs plugin instead.

You should have at least 512 MB of memory to use SpotBugs. To analyze very large projects, more memory may be needed.

Very important issue Unable to use Spotbugs in Android application.

Solution 4:

open the FindBugs setting, click General,then close the "Compile affected files before analyze". It works for me with Android Studio 3.5