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 2020
你的背包
你的背包 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:40

    My solution to this is as below:

    Start Metro server

    $ react-native start
    

    Start Android

    $ react-native run-android
    

    If see errors saying "port 8081 already in use", then you can kill that process and rerun

    $ react-native start
    

    See React Native Troubleshooting Page .

提交回复
热议问题