Is there a tool to find unused resources in an Android project?

Joseph Earl picture Joseph Earl · Apr 28, 2011 · Viewed 25.2k times · Source

I'd like to find any unused resources in my Android project - this includes strings, ids, drawables, integers etc.

Does a tool to do this currently exist (preferably for Eclipse)?

Answer

copolii picture copolii · Jul 11, 2011

A friendly note: The IntelliJ idea ONLY works for resources that are not referenced in JAVA code. So if you have 1500 resources and only 20 are referenced directly from your java code, you end up with 1480 unused warnings in that file.

I'm seeing things marked as unused that I can clearly see are in use in various layouts. So keep that in mind ... don't go on a deleting spree.