显示包含弃用 Android Studio 的类 [英] Display classes containing deprecation Android Studio

查看:34
本文介绍了显示包含弃用 Android Studio 的类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的项目更新为最新的 Android API,该项目现在有多个已弃用的方法.Android Studio 是否有一种很酷的方式来列出包含所述方法的所有类,例如 TODO 窗口?我知道我可以浏览每节课并有条不紊地搜索代码,但我更想让自己轻松一点.

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 myself.

推荐答案

如果它对其他人有帮助,那就是我问题的答案:

If it helps someone else heres the answer to my question:

如果你去分析 ->检查代码...

当您的项目被检查时,点击代码成熟度问题和 tada,有一个所有已弃用的 API 用法的列表:)

When your project has been inspected click on Code maturity issues and tada, there is a list of all Deprecated API usages :)

更新:2021 年 5 月

现在可以在您各自的语言下找到弃用警告.

Deprecation warnings are now found under your respective language.

Kotlin ->迁移 ->使用冗余或弃用的语法或弃用的符号

Java ->代码成熟度

这篇关于显示包含弃用 Android Studio 的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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