如何在string.xml文件中找到所有伪造或无用的字符串值?

Bad*_*chi 0 android analyzer android-resources android-studio string.xml

我有一个3000个记录的大而凌乱的string.xml文件,其中的大多数值都是无用的,并且从未在代码中使用过。我想自动查找并忽略那些无用的记录。有没有办法在string.xml文件中查找无用的记录?

Sac*_*ndi 5

右键单击strings.xml文件:单击Refractor,然后单击Remove Unused ResourcesRefractor在确认对话框中单击。 辅助图片

  • 这是否会删除所有未使用的资源,而不仅仅是字符串? (2认同)