Google Sep 9, 2025

Improve App Performance With Optimized Resource Shrinking

Article Summary

Johan Bay from Google just dropped a game-changer for Android app size. Apps sharing resources across form factors are seeing 50%+ size reductions with one configuration change.

Google's Android team released optimized resource shrinking in AGP 8.12.0, fundamentally changing how R8 removes unused code and resources. Instead of treating code and resource optimization as separate steps, R8 now analyzes both simultaneously for far more aggressive pruning.

Key Takeaways

Critical Insight

By unifying code and resource optimization into a single pass, R8's new approach removes unused resources that the old two-step process couldn't detect.

The Androidify example reveals exactly how much each optimization layer contributes to the final size reduction.

Recent from Google

Related Articles