About Android App Bundles (original) (raw)

An Android App Bundle is a publishing format that includes all your app's compiled code and resources, and defers APK generation and signing to Google Play.

Google Play uses your app bundle to generate and serve optimized APKs for each device configuration, so only the code and resources that are needed for a specific device are downloaded to run your app. You no longer have to build, sign, and manage multiple APKs to optimize support for different devices, and users get smaller, more-optimized downloads.

Most app projects won't require much effort to build app bundles that support serving optimized APKs. If you already organize your app's code and resourcesaccording to established conventions, build signed Android App Bundles using Android Studio or by using the command line, and upload them to Google Play, then optimized APK serving becomes an automatic benefit.

When you use the app bundle format to publish your app, you can also optionally take advantage of Play Feature Delivery, which lets you add feature modules to your app project. These modules contain features and resources that are only included with your app based on conditions that you specify, or are available later at runtime for download Using the Play Core Library.

Game developers who publish their apps with app bundles can usePlay Asset Delivery: Google Play's solution for delivering large amounts of game assets that offers developers flexible delivery methods and high performance.

Watch the following video for an overview of why you should publish your app using Android App Bundles.

Compressed download size restriction

Publishing with Android App Bundles helps your users to install your app with the smallest downloads possible and increases the compressed download size. That is, when a user downloads your app, the total size of the compressed APKs required to install your app (for example, the base APK + configuration APKs) must be no more than 4 GB. Any subsequent downloads, such as downloading a feature module (and its configuration APKs) on demand, must also meet this compressed download size restriction. Asset packs don't contribute to this size limit, but they do have other size restrictions.

If the Play Console finds any of the possible downloads of your app or its on demand features to be more than the maximum size limits, you will get an error.

Keep in mind, Android App Bundles do not support APK expansion (*.obb) files. So, if you encounter this error when publishing your app bundle, use one of the following resources to reduce compressed APK download sizes:

Other considerations

The following are known issues when building or serving your app with Android App Bundles. If you experience issues that are not already described here, report a bug.

Additional resources

To learn more about Android App Bundles, consult the following resources.

Blog posts

Videos