skip to Main Content

When I make a local build of an app created using EXPO react native, I get an .apk file instead of .aab

  1. For testing app build I am using expo template with expo router
npx create-expo-app@latest --template tabs@50
  1. Then I do prebuild
npx expo prebuild
  1. I’m following these instructions
    Production builds locally
    https://docs.expo.dev/deploy/build-project/#production-builds-locally

    Publishing to Google Play Store
    https://reactnative.dev/docs/signed-apk-android

  2. I’m generating a key with keytool

  3. I’m making changes to the android/gradle.properties file

  4. I’m making changes in the android/app/build.gradle adding signing config

  5. And finally I am using this command

npx expo run:android --variant release

After all this I get app-release.apk file in this folder "androidappbuildoutputsapkrelease"

But how I can get .aab bundle file?

2

Answers


  1. check if your eas.json have

    "android":{
                            "buildType": "apk"
                        },
    

    under the channel you are trying to get your build from.

    Login or Signup to reply.
  2. Have you tried ?

    eas build -p android –profile preview –platform android –type app-bundle

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search