Is there any simple way to find out unused strings in Android project?

后端 未结 9 1024
傲寒
傲寒 2021-01-30 03:03

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

9条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 03:29

    Here is another solution that is fairly easy. In the Android Studio menu go to

    Refactor > Remove Unused Resources....

    Click Preview to see what the unused resources are and selectively remove them.

提交回复
热议问题