I've found an unused string resource, like:
<string name="obsoletestring">my name is null!</string>
However it is in tens of files, of different languages, in different strings.xml
files in values
, values-af
, values-be
, etc folders.
I must have missed something not to know any way to do this in Android Studio other than modifying it by hand one by one.
tl;dr How to delete an unused string resource for all configurations?
To identify all unused resources:
There is no really easy way in Android Studio (v 1.0) to remove a resource string for all locales. However, you can search and replace in files. Fortunately, the translation files use only a single line in most cases so this works pretty well.
In Android Studio:
.*name="obsoletestring".*\n