Could not get BatchedBridge, make sure your bundle is packaged correctly

来源:互联网 发布:ubuntu不支持exfat 编辑:程序博客网 时间:2024/06/04 01:36

问题:Could not get BatchedBridge, make sure your bundle is packaged correctly

解决方案:cd 进入项目根目录执行如下安装命令:
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/
直接执行此命令如果出现如下错误(no such file..),请到app/src/main目录下手动创建assets文件加,然后在从新执行。

阅读全文
0 0
原创粉丝点击