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

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

问题描述

我运行Android Studio v2.1.3,并使用 ./ gradlew构建来使用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天全站免登陆