Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.

原因是模拟器用错了,用了Intel x86_64。正确的应该使用Google APIs Intel x86_64(根据电脑系统和芯片,选择适当的)

解决方案来源:启动安卓项目-Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release. · Issue #905 · reactnativecn/react-native-website · GitHub

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐