Android Studio中删除无效的字符串资源

1、定位到当前项目中的strings.xml文件

1、菜单栏找到"Analyze"->"Run Inspection By Name..."->输入"unused resources"回车

3、选择Custom scope中Current File,点击OK,就会列出所有无效的字符串,选择右侧remove all即可

posted @ 2019-06-25 14:00  jichao3274  阅读(1675)  评论(0)    收藏  举报