Findbugs 失败并显示“java.io.IOException:无法打开要分析的文件"; [英] Findbugs fails with "java.io.IOException: No files to analyze could be opened"

查看:49
本文介绍了Findbugs 失败并显示“java.io.IOException:无法打开要分析的文件";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I run an Android Studio v2.1.3 and use ./gradlew build to detect errors in the Android project with the Findbags.

最近开始出现错误:

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,除此之外,我没有看到发生该错误的任何特殊原因.请帮忙详细说明这个问题.

There are enough disk space and RAM and beside that I don't see any particular reason for that error to occur. Please help to elaborate on this problem.

推荐答案

如果你使用3.2,请注意

If you use 3.2, please take a note that

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

应该是

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

这篇关于Findbugs 失败并显示“java.io.IOException:无法打开要分析的文件";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆