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

后端 未结 30 1999
你的背包
你的背包 2020-11-28 19:16

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

Unable to load script.Make

30条回答
  •  死守一世寂寞
    2020-11-28 19:49

    A similar issue happened with me.
    Apparently Mcafee blocks 8081 port. Took me hours to figure this out.

    Try running:

    react-native run-android --port=1234
    

    When app shows up with an error on emulator, get into dev settings (Ctrl+M).

    Change the "Debug server host and port for device" to "localhost:1234".

    Close the app and start it from the app drawer.

提交回复
热议问题