Skip to content Skip to sidebar Skip to footer

Remove Unused Resources Before Shipping

Question: Does anyone have a quick way for removing all the extra resources in an Android application that are not being used(referenced) in my code? Explanation: I've noticed that

Solution 1:

Yes, the ADT in Eclipse includes something called "android lint".

http://tools.android.com/tips/lint

In a nutshell, it points out problems with your app. One thing it notes is unused resources. It doesn't automatically remove them.

You can access it from Eclipse through (right click project) > android tools > run lint.

Solution 2:

Solution 3:

We build a small tool that will remove all the unused resources from your project based on the android lint output. We think this is more reliable then the android-unused-resources project as we rely on the official lint tool.

https://github.com/KeepSafe/android-resource-remover

Post a Comment for "Remove Unused Resources Before Shipping"