Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release

Belle Solutions picture Belle Solutions · Mar 31, 2019 · Viewed 121.6k times · Source

react-native run-android command terminates by leaving a message in android simulator. The message is as follows:

Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release.

Screenshot

What am I doing wrong?

Answer

Nerdragen picture Nerdragen · Mar 31, 2019

You haven't started the bundler yet. Run npm start or react-native start in the root directory of your project before react-native run-android.