AndroidStudio查找硬编码的String字符串

在Menu的“Analyze”中,选择“Run Inspection By Name”,然后输入“Hardcoded strings”,执行后,可以找到所有没有加入strings.xml的字符串。

按Alt + Enter,可以把它加入到resource文件中

原文地址:https://www.cnblogs.com/gloryhope/p/13280046.html