Guides › Build an Android APK or AAB in the cloud
Build an Android APK or AAB in the cloud
5 min read
A release Android build usually means a local Android SDK, the right JDK and a keystore on your machine. BuildStack does the build in the cloud instead: point a project at your Expo or React Native repo and you get a signed APK or AAB back, with nothing to install locally.
1. Connect your project
Create a project from your repository. Expo projects are prebuilt and native dependencies are resolved for you, so a managed or bare React Native app builds the same way. On the free tier you get 25 Android builds a month with no card.
2. Choose a variant and format
Set variant to release for a store-ready build (or debug while you iterate), and format to apk or aab. Use apk when testers install the file directly or scan a QR, and aab when you are publishing to Google Play, which expects an Android App Bundle.
curl -X POST https://api.mybuildstack.com/api/projects/$PROJECT/builds \
-H "Authorization: Bearer $BUILDSTACK_KEY" \
-d '{"variant":"release","format":"apk","sign":true}'
3. Sign without handling the keystore
With sign set to true the build is signed with your keystore, which is sealed and encrypted at rest; the plaintext never travels through the build. If you do not have a keystore yet, BuildStack can generate and manage one for a supported Android project.
4. Get the artefact and a QR
When the build finishes, the build detail page shows the signed APK or AAB to download and a scan-to-install QR so testers can install straight to a device. Over-the-air updates can be pushed to a release channel without a new store submission.
5. Publish to a Play track
For an AAB, add a publish target and the signed bundle goes straight to a Google Play track: internal, alpha, beta or production. The upload status shows on the build page while store review runs.
curl -X POST https://api.mybuildstack.com/api/projects/$PROJECT/builds \
-H "Authorization: Bearer $BUILDSTACK_KEY" \
-d '{"variant":"release","format":"aab","sign":true,"publish":"internal"}'
Cloud builds, managed signing and one-call Play publishing for Expo & React Native.
Start free