
r8-analyzer
Analyzes Android build files and R8 keep rules to identify redundancies
by androidFree
Description
r8-analyzer is an Android skill that analyzes build files and R8 keep rules to find redundancies, broad package-wide rules, and rules that cover what library consumer keep rules already do. It is meant for projects that shrink and optimize their code with R8. The first step checks the setup in build.gradle, build.gradle.kts and gradle.properties, using a configuration reference to spot missing optimizations. It recommends moving to Android Gradle Plugin 9.0 or later for build-time performance, and it asks for the full mode flag, android.enableR8.fullMode=false, to be removed from gradle.properties. The second step chooses an analysis path from the versions of AGP and R8. With AGP 9.3.0 or later, it uses a standalone Gradle task. With an earlier AGP and an R8 version of 9.3.7-dev or later, it uses a quantitative path. Otherwise, it uses a heuristic path. The skill refers to Android documentation on enabling app optimization. It is installed with npx skills add https://github.com/android/skills --skill r8-analyzer, and the skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passed.…
Highlights
- Finds redundant and broad keep rules
- Checks Gradle and R8 setup
- Chooses an analysis path by version
- Suggests AGP 9.0 and removing full mode
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate r8-analyzer.
People also visit

xcode-project-analyzer
Audit Xcode project configuration, build settings, scheme behavior

argent-react-native-optimization
Optimizes a React Native app by profiling first to find real bottlenecks

xcode-build-fixer
Apply approved Xcode build optimization changes following best practices
r8-analyzer FAQ
What does r8-analyzer look at?
Build files, gradle.properties and R8 keep rules, to find redundant or overly broad rules.
Why is AGP 9.0 suggested?
The skill says it improves build-time performance, so it recommends moving to 9.0 when the version is lower.
What is full mode?
The skill asks you to remove android.enableR8.fullMode=false from gradle.properties.
How is the analysis chosen?
By the AGP and R8 versions: a standalone task with AGP 9.3.0 or later, a quantitative path with R8 9.3.7-dev or later, or a heuristic path otherwise.
How do I install it?
Run npx skills add https://github.com/android/skills --skill r8-analyzer.
What are its security audits?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passed.
What are the best r8-analyzer alternatives?
Popular alternatives to r8-analyzer include xcode-project-analyzer, argent-native-profiler and argent-react-native-optimization. See all r8-analyzer alternatives









