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

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

    In my case "Run Inspection by Name" didnt work, despite the fact I was using "Remove unused resources".

    Solution:

    1. Open strings.xml
    2. Secondary click
    3. Refactor --> Remove Unused Resources

    I have no clue why "Remove Unused Resources" works one way but not the other.

提交回复
热议问题