Android Studio - 检查代码 - 排除生成的文件 [英] Android Studio - Inspect Code - Exclude generated files
本文介绍了Android Studio - 检查代码 - 排除生成的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么办法,如何从分析->检查代码中排除android生成的文件(或手动指定排除的文件夹)?
Is there any way, how to exclude android generated files (or manually specify excluded folders), from Analyze -> Inspect Code ?
推荐答案
我找到了答案
排除的文件夹不会用于代码分析
- 右键单击顶级元素并转到打开模块设置
- 您已经列出了单个模块,请选择正确的模块
- 在右栏中选择要排除的文件夹,然后右键单击->排除或文件树上方的按钮排除
- 在左栏中,从除排除的文件夹 之外的其他组中删除对排除目录的所有剩余引用
- Right-click on top-level element and go to Open Module Settings
- There you have listed single modules, select correct module
- In right column select folders to be excluded and either right click -> exclude or button exclude above the file tree
- In left column remove all leftover references to excluded directories from other groups than Excluded Folders
这篇关于Android Studio - 检查代码 - 排除生成的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文