I have created a new project using react native version "0.71.2" . In APK the assets are not bundling and there is no option of bundleInDebug in Build.gradle
expecting to generate the build APK with bundling js and assets
I have created a new project using react native version "0.71.2" . In APK the assets are not bundling and there is no option of bundleInDebug in Build.gradle
expecting to generate the build APK with bundling js and assets
2
Answers
Build Debug with assets:
You can build a debug version using this steps:
or
Build Release with assets:
And you can build a release version which is much easier using this command:
This is what ultimately worked for me after some trial and error.
Note: I’m running this in GitHub Actions which is why I am using
npx
but if running locally and you have the React Native CLI installed you don’t need thenpx
in step 3.index.android
first and it didn’t work)I did these steps in GitHub Actions and was able to run the output
.apk
on an Android Emulator. Hope that helps!