What does R8 do in an Android build?
- A Shrinks, optimises and obfuscates code and resources
- B Compiles Kotlin to bytecode
- C Signs the APK
- D Generates the manifest
Answer
Shrinks, optimises and obfuscates code and resources
Aggressive shrinking can remove code accessed only by reflection, which is why keep rules are sometimes required.





