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.

FindBugs is unable to find classes in a multiflavored project

See original GitHub issue

Hi @vanniktech, thanks for the great plugin! I believe it will become very popular soon. There some issues, however, that prevent us from use it in production. Here is one of them.

Our project has a number of ABI flavors, like “arm” and “x86”. We found that it’s not possible to perform FindBugs check on it:

./gradlew findbugs
... assembles all flavours ...
:app:assemble
:app:findbugs FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:findbugs'.
> No classes configured for FindBugs analysis.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

That’s because it searches for classes to analyze in hardcoded place: https://github.com/vanniktech/gradle-code-quality-tools-plugin/blob/master/src/main/groovy/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.groovy#L158 , but in our project these classes are placed in a build/intermediates/classes/arm/debug .

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
budnyjjcommented, Jul 13, 2017
0reactions
vanniktechcommented, Feb 25, 2018

Closing this. Have a look at #75 for the reasoning behind this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FindBugs FAQ - SourceForge
If FindBugs cannot find a class referenced by your application, it will print out a message when the analysis completes, specifying the classes...
Read more >
Findbugs needs sources to be compiled. Please build project ...
Now for a project i can't get the compiled code, what to do to have the analysis not ... classes to make it...
Read more >
Can I tell findbugs to ignore classes I am unable to add?
When FindBugs can't find that class, it generally just aborts the specific kind of analysis it was trying to do, and carries on...
Read more >
SpotBugs FAQ — spotbugs 4.7.3 documentation
If SpotBugs cannot find a class referenced by your application, it will print out a message when the analysis completes, specifying the classes...
Read more >
Introduction to FindBugs - Baeldung
In this article, we're going to have a look at setting up FindBugs on a Java project and integrating it into the IDE...
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