Skip to content
A

Android Resource Remover

A simple utility to remove unused resources in your Android app

by KeepSafeFree

#1564in Utilities
0In stores

Description

android-resource-remover is a command-line utility that removes unused resources from an Android app, using the output of Android Lint. Its…

Highlights

  • Removes resources reported as unused by Android Lint
  • Works with Gradle projects through a lint results file
  • Options for custom lint paths and existing results
  • Option to ignore layout directories
  • Installs with pip

Ratings & Reviews

No ratings yet

Be the first to rate Android Resource Remover.

People also visit

U

Universal Android Debloater Next Generation

Cross-platform GUI written in Rust using ADB to debloat non-rooted Android…

Utilities
Launch
D

Droidlysis

Property extractor for Android apps

Utilities
Launch
R

r8-analyzer

Analyzes Android build files and R8 keep rules to identify redundancies

AI Skills
Get
K

knip

Run knip to find and remove unused files, dependencies, and exports

AI Skills
Get
R

Redex

A bytecode optimizer for Android apps

Utilities
Launch
L

limrun-gradle

Build an Android app on a remote Gradle sandbox

AI Skills
Get

Android Resource Remover FAQ

What does it do?

It removes unused resources from an Android project, based on the Android Lint output, to reduce APK size.

How do I install it?

Run pip install android-resource-remover. The README lists Python 2.7 or later and ADT 16 or later as requirements.

How do I use it with Gradle?

Run lint through Gradle, then pass the lint results XML file to the remover with --xml.

Why run it more than once?

Resources can depend on each other, so a removal can leave new unused resources. The README says the authors ran it up to four times in a row.

What happens to my code?

Code that refers to a removed layout ID will fail to compile with an error that the ID cannot be found. The README says to clean up those references.

I get an lxml install error on macOS. What now?

The FAQ links fixes from Stack Overflow for the clang and libxml errors.

What are the best Android Resource Remover alternatives?

Popular alternatives to Android Resource Remover include Universal Android Debloater Next Generation, Droidlysis and Redex. See all Android Resource Remover alternatives

Developer Stuff

Badges