Android Builds
Build and submit Android apps to Google Play Store using Capgo’s dedicated infrastructure.
What you will learn
Section titled “What you will learn”- You will learn how to upload your app via Capgo Native build
- You will learn how to configure the credentials for Capgo Native Build
Prerequisites
Section titled “Prerequisites”- You need to have an active Google Developer account
- You need to have Android Studio installed
- Your app must be able to build successfully with Android Studio
The first manual build
Section titled “The first manual build”Before we can start thinking about building the app with Capgo, we should first set it up, and do a first Android build by hand. There are some advantages to doing a manual build first:
- You will prepare the credentials for the later Capgo build
- You will create a record on the Play Store Console
Building the app manually with Android Studio
Section titled “Building the app manually with Android Studio”Before we can start building the app with Capgo, we need to build the app manually with Android Studio.
-
Open Android Studio
Run
bunx cap open androidto open the Android Studio project. -
Click on
Build->Generate Signed App Bundles / APKs
-
Select
Android App Bundleand click onNext
Creating a Keystore
Section titled “Creating a Keystore”Right now, you are missing the keystore file. This file is used to sign your app, which lets Google know that it’s you who built the app. To generate it, we will use the GUI method provided by Android Studio. There is also a way to do this with the command line, but we will not cover that in this tutorial.
-
Click on
Create new
-
Fill in the Key Store path

-
Set the Key Store password

-
Fill the rest of the form
- Keep the Key Alias as is (key0)
- Fill the certificate details. I have filled it with fake details, but you should fill it with your own details.

-
Click on
OK
-
Make sure all of the details for the keystore have been filled in correctly and click on
Next
-
Select the
releasebuild variant and click onCreate
-
After the build succeeds, you should see the following screen

- This popup indicates that the build succeeded.
- Click on the
locatebutton - this will open the file explorer and you should see the build there.
-
Make sure you can see the build in the file explorer

Configuring Capgo Native Build (Android)
Section titled “Configuring Capgo Native Build (Android)”| Requirement | Flag | Description | Required |
|---|---|---|---|
| Keystore file | --keystore <path> | Path to your .jks/.keystore file used to sign the APK/AAB. | Yes |
| Keystore alias | --keystore-alias <alias> | Alias name of the key inside the keystore. | Yes |
| Keystore key password | --keystore-key-password <password> | Password for the key. If key/store passwords match, you can provide only one. | Look at the note below |
| Keystore store password | --keystore-store-password <password> | Password for the keystore. If key/store passwords match, you can provide only one. | Look at the note below |
| Google Play service account | --play-config <path> | JSON service account file for Play Store uploads. | Yes |
bunx @capgo/cli build credentials save --platform android \ --keystore ./path/to/keystore.jks \ --keystore-alias "your-alias" \ --keystore-key-password "key-password" \ --keystore-store-password "store-password" \ --play-config ./play-store-service-account.jsonKeystore, keystore password, keystore key password, keystore alias
Section titled “Keystore, keystore password, keystore key password, keystore alias”If you have followed the manual build instructions, you should have the keystore already generated. If you have not followed the instructions, please follow them to generate the keystore.
Google Play service account
Section titled “Google Play service account”Generating the Google Play service account is a manual and complex process. Yet, it is required to upload your app to Google Play. Please keep in mind the following things:
- You NEED to be the owner of the Developer Account. Otherwise, you will not be able to setup the service account.
- You will need to create a new Google Cloud Project (separate from your Google Play Account)
Let’s begin.
-
Go to Google Cloud Console
-
Click on the project selector

-
If you already have a project, select it. Otherwise, create a new project:
- Click on
New project
- Name your project and click
Create
- Ensure that you are on the right project

- Click on
-
Let’s click on the search bar and search for
service accountsand click on it

-
Let’s click on
Create service account
-
Fill in the form for the service account and click on
Done- I recommend setting the name to
Capgo Native Build Service Account - For the Service Account ID, I recommend setting it to
capgo-native-build-service-acc - As for the description, you don’t have to fill it in, but I recommend filling it with
Allows Capgo Native Build to build and submit the app to the Play Store

- I recommend setting the name to
-
Click on the newly created service account You should now see the newly created service account in the list. Click on it.

-
Click on the
Keystab
-
Click on
Add KeyandCreate new key
-
Click on
JSONandCreate
-
Download the JSON file The JSON file should have been downloaded automatically. You can click on
closeto close the window.
Saving the credentials
Section titled “Saving the credentials”You can save the credentials using the following command:
bunx @capgo/cli build credentials save --platform android \ --keystore ./path/to/keystore.jks \ --keystore-alias "your-alias" \ --keystore-key-password "key-password" \ --keystore-store-password "store-password" \ --play-config ./play-store-service-account.json