An APK is the actual installable file for Android devices. An App Bundle is a publishing format that Google Play uses to create device-specific APKs, reducing app size.
App Bundles allow Google Play to deliver only the code and resources needed for the user's device, reducing app size and saving storage.
Google Play uses the App Bundle to create optimized APKs and supports delivering only the changed parts during updates, making updates smaller and faster.
When publishing with App Bundles, developers upload a .aab file to Google Play Console. Google Play then generates APKs for devices automatically.
android {
bundle {
language {
enableSplit = true
}
density {
enableSplit = true
}
abi {
enableSplit = true
}
}
}The 'bundle' block with 'enableSplit = true' for language, density, and abi allows Google Play to create optimized APKs for different device configurations, reducing app size.