android - Findbugs 失败并显示 "java.io.IOException: No files to analyze could be opened"

标签 android android-studio findbugs gradlew android-studio-2.1

我运行 Android Studio v2.1.3 并使用 ./gradlew build 使用 Findbags 检测 Android 项目中的错误。

最近开始出现错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':process:customFindbugs'.
> java.io.IOException: No files to analyze could be opened

有足够的磁盘空间和 RAM,除此之外,我看不出有任何特定原因会导致该错误发生。请帮助详细说明这个问题。

最佳答案

如果使用3.2,请注意

classes = files("$project.buildDir/intermediates/classes")

应该是

classes = files("$project.buildDir/intermediates/javac")

关于android - Findbugs 失败并显示 "java.io.IOException: No files to analyze could be opened",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39851965/

相关文章:

Sonar Qube - "The class ' .. .' could not be matched to its original source file."

android - 中止/取消广播

android - 当按下耳机按钮时,我们如何禁用 android 手机中音乐播放器的启动?

android - 为 Flutter 项目添加 Android 运行/调试配置

Android Studio Gradle 代理设置

findbugs - findbugs 中的优先级/信心的实际含义是什么?

java - 在一个应用程序中使用大量静态分析工具

java - 如何验证按钮单击时的方法

android - 在Android Studio中构建时重复的类

android-studio - Android 模拟器在 Android Studio 中启动,但未显示在设备选项卡中