DEV Community

Discussion on: Generate release mode APK for React-Native project to publish on PlayStore

Collapse
 
textoro profile image
Rostyslav

Hi Zilu. Follow your instructions, obtain error:

Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.

Collapse
 
egiesem profile image
Egi ESEM

don't run debug version, to create apk release version first you must run:
npx react-native run-android --variant=release
or
react-native run-android --variant=release

Then APK can be found in android/app/build/outputs/apk/release

Collapse
 
zilurrane profile image
Zilu Ramkrishna Rane

You get this error after running which command?
Could you please provide more details.