Home / Market / r8 analyzer

r8 analyzer

Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. Use when developers want to optimize their app's size, remove redundant or overly broad keep rules, or troubleshoot Proguard configurations.

skill★ 108484240 dlskills.shApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: r8-analyzer description: Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. Use when developers want to optimize their app's size, remove redundant or overly broad keep rules, or troubleshoot Proguard configurations. license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-09-22' keywords:

---

Step 1. Setup and configuration check

Step 2. Analysis path selection

libs.versions.toml to get the AGP and R8 versions.

Path A: Standalone Gradle task (AGP \>= 9.3.0)

Path B: Quantitative data generation (R8 \>= 9.3.7-dev and AGP \< 9.3.0)

Path C: Heuristic evaluation and recommendation (R8 \< 9.3.7-dev)

*(Use ONLY if quantitative data generation is not possible)*

Step 3. Report generation

Constraints