Skip to content

Instantly share code, notes, and snippets.

@0guzhan
Created April 7, 2016 10:17
Show Gist options
  • Save 0guzhan/52f37548dbfe261ef6f27fab6ee61b87 to your computer and use it in GitHub Desktop.
Save 0guzhan/52f37548dbfe261ef6f27fab6ee61b87 to your computer and use it in GitHub Desktop.
Removing Android Unused Resources(drawables, layouts and even string definitinions in strings.xml)
# install python 2.7.+ and install android-resource-remover module with following command
pip install android-resource-remover
# investigate project with lint that delivers with android-sdk
gradlew.bat :app:lint
# this python module will remove unused resources from android project
android-resource-remover --xml app\build\outputs\lint-results.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment