运行react-native 时遇上Could not get BatchedBridge, make sure your bundle is packaged correctly,网上了找了好些答案,终于解决了。
解决方案:
1.检查项目下是否有assets目录,若没有则创建(位置如:android/app/src/main/assets)
2.在当前目录下执行命令:
react-native bundle –platform android –dev false –entry-file index.android.js –bundle-output android/app/src/main/assets/index.android.bundle –assets-dest android/app/src/main/res/
重新运行项目,ok了
react-native 运行报Could not get BatchedBridge, make sure your bundle is packaged correctly 错误
最新推荐文章于 2020-04-06 22:40:21 发布