Thursday, October 29, 2020

Generate React-Native Debug APK (Serverless)

Create an asset folder in this path

 /app/src/main/

---------------------------------------------------------------------------------------------

Bundle the assets inside the assets folder created above step.

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_

---------------------------------------------------------------------------------------------

Move to the android folder and build APK using the below command.

cd android && gradlew clean assembleDebug

---------------------------------------------------------------------------------------------

That's all! Find your debug APK inside /app/android/build/outputs/apk/debug

No comments:

Post a Comment