java 显示包含弃用 Android Studio 的类
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34807147/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Display classes containing deprecation Android Studio
提问by hopeman
I updated my project to the latest Android APIs and the project now has multiple deprecated methods. Does Android Studio have a cool way of listing all classes containing said methods, such as the TODO window? I know I can go through every class and search methodically through the code, but I would rather like to make it easy on my self. Any help, tips and or hints are greatly appreciated.
我将我的项目更新为最新的 Android API,该项目现在有多个不推荐使用的方法。Android Studio 是否有一种很酷的方式来列出包含所述方法的所有类,例如 TODO 窗口?我知道我可以浏览每门课并有条不紊地搜索代码,但我更想让自己轻松一点。非常感谢任何帮助、提示和/或提示。
回答by hopeman
If it helps someone else heres the answer to my question:
如果它对其他人有帮助,那就是我的问题的答案:
If you go to Analyze-> Inspect Code...
如果你去分析->检查代码...
When your project has been inspected click on Code maturity issuesand tada, there is a list of all Deprecated API usages :)
检查您的项目后,单击代码成熟度问题和 tada,会列出所有已弃用的 API 用法:)
回答by Sidhu Gaikwad
Follow below steps: Go to Analyze -> Run Inspectinon By Name ->type Deprecated API Usage
请按照以下步骤操作: 转到分析 -> 按名称运行 Inspectinon -> 键入已弃用的 API 用法