How do I build an AAB file for a Native Android project in Codemagic?

Last updated: July 15, 2026

Context

If you have a Native Android project and want to build an Android App Bundle (AAB) file using Codemagic, this article walks you through the steps to get set up and generate your AAB file.

Answer

Follow these steps to build an AAB file for your Native Android project in Codemagic:

  1. Create an account: If you haven't already, create an Individual account on Codemagic. Click the Get Started button on the Individual plan card — this plan includes 500 free build minutes.

  2. Connect your repository and add your app: After signing up, you will be prompted to connect your repository and add your application. You can find detailed instructions in the Adding Apps documentation.

  3. Configure your build: Set up your build configuration following the Native Android quick start guide. The AAB file is generated using the following Gradle command:

    ./gradlew bundleRelease

    The resulting AAB file will typically be located at the following path that needs to be configured in codemagic.yaml:

    artifacts:
      - app/build/outputs/**/*.aab
  4. Configure Android code signing (if publishing to Google Play): If you intend to release the AAB on the Google Play Store, you will also need to configure Android code signing as part of your build setup. This is covered in the Native Android quick start guide.

Helpful resources: