A debug build normally expects the Metro bundler. To create an APK that runs standalone, bundle the JavaScript into the app first.
- In your project root, create the assets folder:
mkdir -p android/app/src/main/assets - Bundle the code:
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res - Build:
cd android && ./gradlew assembleDebug - Find the APK in
android/app/build/outputs/apk/debug/.
Updated tip: for sharing with testers, use assembleRelease with a proper keystore or distribute through Firebase App Distribution or Play internal testing, and prefer an App Bundle (AAB) for the store.

