# Packaging to Android App Bundle

**URL:** https://forum.castle-engine.io/t/packaging-to-android-app-bundle/375
**Category:** News
**Created:** [July 23, 2021, 6:05pm UTC](https://forum.castle-engine.io/t/packaging-to-android-app-bundle/375 "2021-07-23T18:05:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [July 23, 2021, 6:05pm UTC](https://forum.castle-engine.io/t/packaging-to-android-app-bundle/375/1 "2021-07-23T18:05:03Z")

</div>

| [![Android App Bundle](https://castle-engine.io/wp/wp-content/uploads/2021/07/android_CC0_by_mohamed_mahmoud_hassan-200x145.jpg)](https://castle-engine.io/wp/wp-content/uploads/2021/07/android_CC0_by_mohamed_mahmoud_hassan.jpg "Android App Bundle") |

You can now easily package Android games using _Castle Game Engine_ to the AAB format (instead of APK). New [Build Tool](https://github.com/castle-engine/castle-engine/wiki/Build-Tool) command-line options allow to execute:

- `castle-engine package --target=android --package-format=android-app-bundle`

Will package to the new AAB format.

- `castle-engine package --target=android --package-format=android-apk`

_Why the new Android package format?_

Starting _August 2021_ (next month!) all new apps published on Google Play Store are required to be uploaded in [Android App Bundle (AAB)](https://developer.android.com/platform/technology/app-bundle) format and from _November 2021_ all updates to existing apps at Google Play Store will be required to use AAB format. Also, uploading apps in AAB format overcomes Google Play Store 100 MB limitation on a project build, which is especially important for games, as different assets can take up a lot of space and reducing their quality is not always a good option.

Note that we still support packaging to regular _Android Packages_ (APK) that can be instantly installed to an Android device and it still remains a default packaging format for Android platform, as it is very convenient for development purposes or for distribution through alternative to Play Store platforms, e.g. uploading to [itch.io](https://itch.io/).

_Android App Bundle_ (AAB) is a collection of prebuilt resources targeted for different user devices (such as Android version, CPU architecture, Screen resolution). Play Store then automatically generates an APK based on user configuration. Note that it also means that AAB package cannot be directly installed on a mobile device/emulator and therefore for debugging and internal testing APK is still a necessary format.
