Android Studio 中未使用的 @Composable 函数检查

问题描述 投票:0回答:1

我不小心关闭了Android Studio中的[未使用的@Composable函数检查]。 现在我的Android Studio不再检查是否使用了@composable函数。 如何重新启用?

enter image description here

我搜索设置并没有找到有用的东西。

android-studio
1个回答
0
投票

File -> Settings -> Editor -> Inspections -> Kotlin -> Redundant constructs -> Unused symbols
中单击“选项”下的“注释”,然后删除您想要再次报告的内容。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.