I have a huge Android project with many strings declared in strings.xml
. I wanted to remove unused strings in strings.xml
.
Is there any easy wa
In my case "Run Inspection by Name" didnt work, despite the fact I was using "Remove unused resources".
Solution:
I have no clue why "Remove Unused Resources" works one way but not the other.
To check string.xml.
It's easy (at least in my version of Eclipse)
In Eclipse for Android (I have version v22.6.2-1085508)
Now when you open strings.xml, you will see that unused string are highlighted.
You can fix other potential issues.
In Android Studio Press
Ctlr+Alt+Shift+i
Select -> Unused resources
It shows you unused unused strings and icons.
Thanks Happy coding :)