Android & Jetpack Compose (50 Qs)•Part 2: Compose Internals, Persistence, DI & Background Work (11 - 24)
What is the difference between APK and Android App Bundle (AAB)?
senior LevelDocker & Containers
In Simple Words:
- APK (Legacy): Fat binary containing all compiled DEX code, resources for all screen densities (hdpi, xhdpi, xxxhdpi), languages, and CPU architectures (armeabi-v7a, arm64-v8a, x86). Large download size.
- AAB (App Bundle - Required since 2021): Uploaded to Google Play Console. Google Play dynamically generates and serves a tailored, split APK containing only the specific CPU architecture, screen density, and language of the user's device, cutting download size by 35-50%!