首先,当我使用 react-native init project1 创建应用程序时。我收到如下错误
无法从 Windows 上的资产 index.android.bundle 加载脚本
后来我通过运行以下命令解决了这个问题 Stackoverflow链接
mkdir android/app/src/main/assets
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 /主/资源
react-native run-android
但后来我收到这样的错误并且无法解决,Module HMRClient is not a registered callable module (calling enable)
