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

后端 未结 9 1035
傲寒
傲寒 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:11

    On Android Studio:

    Menu -> Analyze -> Run Inspection by Name -> Unused resources

    Check File mask(s) checkbox and put strings.xml in the text field.

提交回复
热议问题