Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Lint does not see unused png drawables

Tags:

android

lint

I have many unused (hundreds) png drawables in drawable-hdpi, drawable-xhdpi... folders. Lint check gives me only unused layouts, strings, animations and xml drawables, but not png drawables. Another tool android-unused-resources gives me "0 resources found". I've checked, that drawables really unused (I have searched on a whole project for drawable name, tried to delete drawable and it was OK). Why so that and how to make lint detect them as "unused"?

like image 289
jumper0k Avatar asked Sep 20 '13 17:09

jumper0k


1 Answers

From your comment:

I have a lint.xml file and it have many "issue", one of them: <issue id="UnusedResources" severity="ignore" />

It seems that your Lint is configured to ignore unused resources.

To change that, go in Eclipse > Preferences > Android > Lint Error Checking and either search for the UnusedResources issues, or look under the Performance tab and change the severity of this issue to at least Information or Warning, or even something more severe, as you wish.

enter image description here

like image 180
Adinia Avatar answered Oct 18 '22 20:10

Adinia