cd android && gradlew clean && cd ..
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
cd android/
gradlew assembleDebug
(or you can use for release: gradlew assembleRelease)
cd android && gradlew clean && gradlew assembleRelease
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
For apk : cd android && ./gradlew assembleRelease
For aab : cd android && ./gradlew bundleRelease
react-native bundle — dev false — platform android — entry-file index.js — bundle-output ./android/app/build/intermediates/ assets/debug/ index.android.bundle –assets-dest ./android/app/build/ intermediates /res/ merged/debug
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
your_project->android->app->build->intermediates->assets->debug
cd android/
./gradlew assembleDebug
your_project-> android-> app-> build-> outputs-> apk-> debug-> app-debug.apk
your_project->android->app->build->intermediates
if (__DEV__) {
console.log('I am in debug');
}