RNJet LogoRNJet
Running the App

Android

Run and build your RNJet app on Android.

Running on Android

RNJet supports two environments for Android: Development and Production. These map to separate Android flavors with their own configs, app names, and environment variables.


RNJet ships with a Makefile that gives you an interactive menu — no need to memorize commands:

make menu

You'll see:

Choose an option:
1. Start Metro with cache reset
2. Run pod install (iOS)
3. Run Android Development Debug
4. Run Android Production Debug
5. Build Android Development APK
6. Build Android Production APK

Enter number:

Pick the number for what you need and hit Enter.


Manual Commands

If you prefer running commands directly:

Run

# Development
yarn android:dev

# Production
yarn android:prod

Build APK

# Development APK
yarn build:android-dev

# Production APK
yarn build:android-prod

# Production ABB
yarn build:aab-prod

Android Flavors

RNJet configures two Android product flavors in android/app/build.gradle:

FlavorEnvironmentApp Name
dev.env.development[DEV] Your App
prod.env.productionYour App

This means you can install both the dev and prod versions on the same device simultaneously during testing.


Troubleshooting

Metro not starting?

Use the menu option 1 to start Metro with cache reset:

make menu
# → 1. Start Metro with cache reset

Or manually:

yarn start --reset-cache

Build failing on first run?

Make sure you've run a sync first:

cd android && ./gradlew clean && cd ..

On this page