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

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

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

my name is null!

However it is in tens of

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 02:34

    Until IDE support comes along, something along these lines will work:

    find -name strings.xml|xargs -rd\\n  sed -ri '/"string_to_delete"/d'
    

提交回复
热议问题