configuring-r8-for-compose - Configure R8 for Jetpack Compose
Configures R8 and resource shrinking for Compose while identifying narrow keep rules for reflective consumers.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure release R8 settings
- Enable resource shrinking
- Verify Compose consumer rules
- Identify reflective keep needs
- Inspect missing-rule reports
- Retrace release crash stacks
- Analyze APK contents
- Benchmark release performance
Inputs
- Compose application project
- Release build variant
- AGP and Kotlin versions
- Crash stack traces
- R8 mapping files
- Release APK artifacts
Outputs
- R8 release configuration
- Narrow keep rules
- Missing-rules report findings
- Retraced crash stack
- APK size analysis
- Release performance comparison
Requirements
- AGP 8.0 or later
- Kotlin 2.0 or later
- org.jetbrains.kotlin.plugin.compose
- Buildable release variant
- Android command-line tools 7.0 or later for retrace
