您可以使用该软件自动执行此操作https://www.jetbrains.com/help/idea/2016.2/recognizing-hard-coded-string-literals.html https://www.jetbrains.com/help/idea/2016.2/recognizing-hard-coded-string-literals.html
我的链接有误(感谢您给我带来了坏名声),但是这个问题被重复了很多次......
我希望这对你有帮助,下次,想想我们花时间只是为了帮助别人。祝你好运朋友!
如何在 Android Studio 中找到所有相关的硬编码字符串? https://stackoverflow.com/questions/31485214/how-can-i-find-all-relevant-hard-coded-strings-in-android-studio
在 Android Studio 中自动生成 @String 引用 https://stackoverflow.com/questions/16977208/auto-generate-string-reference-in-android-studio
Android:资源字符串自动生成 https://stackoverflow.com/questions/12219299/android-resource-string-automatic-generation
可以突出显示硬编码的字符串文字并在它们之间导航吗? https://stackoverflow.com/questions/24426440/possible-to-highlight-hard-coded-string-literals-and-navigate-between-them
如何在 Android Studio 中找到我的项目中的所有硬编码字符串 https://stackoverflow.com/questions/25043809/how-can-i-find-all-hard-coded-strings-in-my-project-in-android-studio
在 Intellij 中将 Android 代码中的字符串提取到 strings.xml 文件中的快捷方式是什么? https://stackoverflow.com/questions/13304339/what-is-the-short-cut-to-extract-strings-from-android-code-into-the-strings-xml