The Lint Cleaner Plugin is a Gradle plugin designed to help Android developers manage and clean up unused resources and lint-related warnings in their projects. Over time, Android projects can accumulate unused strings, drawables, layouts, or other resources, which increase build sizes and reduce maintainability. This plugin scans the codebase to detect and safely remove these unused entries, ensuring that the app remains lean. It integrates with Android’s lint checks, giving developers immediate feedback during the build process. The tool can also generate reports that highlight where optimizations are possible, making cleanup transparent. By automating the detection and removal of dead resources, it reduces technical debt and improves both the readability and efficiency of Android apps.
Features
- Deletes unused resource files flagged by Android Lint
- Supports Android Lint XML result files for precise identification
- Offers DSL configuration for excluding specific files
- Allows ignoring all resource files via a toggle setting
- Simplifies cleanup in long-lived Android codebases with dead assets
- Apache 2.0–licensed and easy to integrate into Gradle builds