React native - Unable to load script in android emulator

239 Views Asked by At

I ejected an expo project and tried running npm start and npx react-native run-android. The bundler runs and shows this

To reload the app press "r"

To open developer menu press "d"

The app is installed in the emulator, but shows the following 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.

The emulator is able to reach the host machine IP address in the browser.

I tried the following solutions.

Nothing helped me. What could be the issue?

0

There are 0 best solutions below