React Native Mobile App Development
August 18, 2026 2 min read

Build production file for play store

HS
HEMANT SINGH
Technical Writer & Educator

2. Put the .jks File in Your Android Project

Place your .jks file inside your Android project.

For example:

your-project/
├── android/
│ ├── app/
│ │ ├── upload-keystore.jks
│ │ └── build.gradle
│ └── gradle.properties
├── app.json
└── package.json

I recommend placing the .jks file inside:

android/app/

3. Configure gradle.properties

Open the following file:

android/gradle.properties

Add these properties:

MYAPP_UPLOAD_STORE_FILE=upload-keystore.jks
MYAPP_UPLOAD_KEY_ALIAS=YOUR_KEY_ALIAS
MYAPP_UPLOAD_STORE_PASSWORD=YOUR_KEYSTORE_PASSWORD
MYAPP_UPLOAD_KEY_PASSWORD=YOUR_KEY_PASSWORD

Replace the following values with your actual keystore details:

  1. YOUR_KEY_ALIAS — Your key alias
  2. YOUR_KEYSTORE_PASSWORD — Your keystore password
  3. YOUR_KEY_PASSWORD — Your key password

4. Configure android/app/build.gradle

Open:

android/app/build.gradle

Inside the android { ... } block, add a release signing configuration similar to this:

signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}

Then, inside the buildTypes block, configure the release build to use this signing configuration:

buildTypes {
release {
signingConfig signingConfigs.release
}
}

5. Build Your AAB

Open your project terminal and run:

cd android
./gradlew clean
./gradlew bundleRelease

If you are using Windows PowerShell, you can run:

cd android
.\gradlew clean
.\gradlew bundleRelease

If the build is successful, your AAB file will be generated at:

android/app/build/outputs/bundle/release/app-release.aab

This app-release.aab file is the file you need to upload to Google Play Console.


For building and installing the native Android app:

npx expo run:android