[JAVA] FindBugs-IDEA error

Background

I wanted to do static analysis, so I installed FindBugs on Android Stuido, but it didn't work with an error. I got the following error.

Error:Internal error: (java.lang.ClassNotFoundException) com.google.wireless.android.sdk.stats.IntellijIndexingStats$Index

At first I thought the settings were wrong, but apparently it wasn't.

Cause

Apparently FindBugs can't be used after java9 ...

The FindBugs plugin has been deprecated and will be removed in Gradle 6.0 as FindBugs is unmaintained and does not support bytecode compiled for Java 9 and above. Consider using the SpotBugs plugin instead.

https://stackoverflow.com/questions/55844077/findbugs-idea-classnotfoundexception-com-google-wireless-android-sdk-stats-int

Conclusion

I want you to consider using SpotBugs on the above site

Impressions

I didn't understand the meaning of the error, so I'm glad I solved it. Consider SpotBugs.

Recommended Posts

FindBugs-IDEA error
tomcat error
Eclipse error
Deployment error
Error memorandum
bundle install error
Today's java error
MySql connection error
ITMS-90626 Error Resolution
bundle install error
java error countermeasures
[Swift] Error handling
CodingKeys non-decodable error
Maven3 error memo
composer install error
Uninitialized constant ~~ error