Skip to content
Mobilebeginner

What is an Android App Bundle?

Updated Nov 30, 20263 min readBased on official documentation
What is an Android App Bundle?

In short

An Android App Bundle is a publishing format for Android apps. You upload one bundle file to Google Play, and Google builds and serves optimized APKs for each device. Users download only the code and resources their device needs, so downloads are smaller.

An Android App Bundle is a way to package an Android app for publishing. It contains all of your app's compiled code and resources. The main difference from older publishing is who makes the installable files. With a bundle, you do not build and sign every installable file yourself. Google Play does that step for you.

How it works

An APK is the file Android uses to install an app. Before bundles, developers often built several APKs to support different devices, screen sizes, and languages. Each one had to be built, signed, and managed by hand.

With an app bundle, you upload a single file to Google Play. Google Play uses that bundle to generate optimized APKs for each device configuration. A phone gets only the code and resources it needs to run your app. Users end up with smaller, more efficient downloads, and you avoid managing a pile of separate files.

Most projects need little extra work. If you organize your code and resources using standard conventions, build a signed bundle in Android Studio or on the command line, and upload it to Google Play, you already get optimized delivery.

Feature modules and asset packs

Bundles also support Play Feature Delivery. You can split parts of your app into feature modules. A feature module can be included only when certain conditions you define are met. Or it can be downloaded later at runtime, on demand, using the Play Core Library.

Game developers can use Play Asset Delivery for large sets of game assets. It gives flexible delivery options for big files that a game needs.

Size limits to know about

Each download must stay within a compressed size limit. For a regular install, the total compressed size of the APKs needed for your app, such as the base APK plus configuration APKs, must be no more than 4 GB. Later downloads of feature modules must also respect this limit. Asset packs do not count toward this limit, but they have their own size rules.

If the Play Console finds that a download is too large, it shows an error. Android App Bundles do not support APK expansion (.obb) files, so you cannot use those to get around the limit. The documentation suggests making sure configuration APKs are enabled by setting enableSplit = true for each type, shrinking your app by removing unused code and resources, and moving rarely used features into on-demand feature modules.

Common mistakes

Sideloaded apps, meaning apps installed outside the Google Play Store, can fail to install if they are missing required split APKs. This happens on all Google-certified devices and on devices running Android 10 (API level 29) or higher. Installs through Google Play check that all required parts are present, so this problem is mainly for sideloading.

Another trap is conflicting build settings. Feature modules inherit some build configuration from the base module. If you set a property in one module and a different value in another, you can get build or runtime problems. For example, setting debuggable to true in the base module and false in a feature module can cause issues. Review which settings should be shared and which should be left out.

Tools that change resource tables on the fly can also make generated APKs behave unexpectedly. The documentation recommends disabling those tools when you build a bundle.

Is it right for you?

If you publish on Google Play, an app bundle is the recommended format for most apps. It keeps downloads small and lets you grow the app with feature modules over time. If you only distribute APKs outside Google Play, you will need to manage those files yourself.

FAQ

Do I need to change my code to use an Android App Bundle?

Usually not much. Most projects need only a build setting change and a regular bundle build. Following standard project layout conventions is the main thing that helps.

Can I still install an app bundle directly on a phone?

A bundle file itself is not the installable format. Google Play turns it into APKs for each device. Developers test bundles using tools such as bundletool and the Play Console.

Do asset packs count toward the 4 GB limit?

No. Asset packs do not contribute to the compressed download size limit, but they have other size restrictions that you need to check.

What is a feature module?

It is a part of your app that can be left out of the first install and added later. It can be included based on conditions you set, or downloaded on demand at runtime.

Sources

This page is based on the official documentation below. Read it for full detail.

Android App Bundle — official documentation ↗
blozhikDeveloper news from across the web, explained. Every story links to its original sources.