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 2036
你的背包
你的背包 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:52

    Apparently, none of the answers fixed the issue for me. I was able to run the react-native app on emulator but the same code (even when the Server was running), gave me this error when running the app on the device.

    I was able to resolve it by executing the following command in the terminal:

    adb reverse tcp:8081 tcp:8081

提交回复
热议问题