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

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

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

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

猜你喜欢

转载自www.cnblogs.com/jichao3274/p/11082462.html