How can I find all hard coded strings in my project in Android Studio

问题:

I need to find and extract all hard coded strings in my project in Android Studio (beta) 0.84.我需要在 Android Studio (beta) 0.84 的项目中查找并提取所有硬编码字符串。 I need a static analysis tool like Find Bugs do this for me in one shot and allow me to step through each message and extract the string to resource files.我需要一个像 Find Bugs 这样的静态分析工具,一次性为我完成这项工作,并允许我单步执行每条消息并将字符串提取到资源文件中。 Even better would be if the entire process is automated.如果整个过程是自动化的,那就更好了。

In Android Studio (beta) 0.84 the File / Setting /FindBugs-IDEA shows I18N as an option under Reporting tab.在 Android Studio (beta) 0.84 中,文件 / 设置 /FindBugs-IDEA 将 I18N 显示为报告选项卡下的选项。 But I just cannot figure out how to make it work.但我就是不知道如何使它工作。

Thanks for any suggestions.感谢您的任何建议。


解决方案:

参考: https://stackoom.com/en/question/1h52P
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章