1For windows, gradlew assembleRelease
2
3For Linux, ./gradlew assembleRelease
1After run this in cmd
2
3react-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/
4
5cd android && ./gradlew assembleDebug
6
7then you can get apk app/build/outputs/apk/debug/app-debug.apk
1Place your terminal directory to android using:
2
3cd android
4)================
5For Windows,
6 gradlew assembleRelease
7)=================
8
9)=================
10For Linux and Mac OSX:
11
12./gradlew assembleRelease
13)==================