How to delete an unused string resource for all configurations in Android Studio?

后端 未结 8 989
小鲜肉
小鲜肉 2020-12-09 01:41

I\'ve found an unused string resource, like:

my name is null!

However it is in tens of

8条回答
  •  -上瘾入骨i
    2020-12-09 02:18

    It is now possible inside Android Studio. After Lint checks you see an option on the right Remove All Unused Resources!

    To Delete a single string resource across all locale files, you can use the "Translation Editor". 1. Right click on the res directory to open the translation editor. 2. Select "Show All Keys" selector, and choose "Filter by Text". Supply the name of the resource that you want to delete. 3. Select the resource, and click on the "-" button

提交回复
热议问题