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 2035
你的背包
你的背包 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:47

    Try These steps if you have tried everything mentioned in above solutions:

    1. Create File in android/app/src/main/assets
    2. Run the following command :

    react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

    1. Now run your command to build for e.g. react-native run-android

提交回复
热议问题