R8, Shrinking & App Size

BUILD & TOOLING › Gradle

Shrinking, obfuscating, and optimizing apps with R8 and cutting download size with bundles.

This topic tests whether you can configure R8 correctly for a release build without crashing reflection-based code, and explain how Android App Bundles shrink real download size. Interviewers probe the difference between code shrinking, obfuscation, and optimization, why libraries like Gson need keep rules, and how you deobfuscate a production stack trace with mapping.txt. It is a favourite because misconfigured R8 is a classic source of release-only crashes.

What this covers

Study this topic

Further reading