Could not get BatchedBridge, make sure your bundle is packaged correctly
来源:互联网 发布:网上申报软件下载 编辑:程序博客网 时间:2024/06/05 14:54
第一步在Android的assets文件夹下创建一下两个文件
只要文件名是这两个就可以了
index.android.bundle 以.bundle 作为后缀名
index.android.map 以.map 作为后缀名
第二步在package.json文件中scripts对象中添加一行属性
代码如下:
"bundle-android": "react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --sourcemap-output android/app/src/main/assets/index.android.map --assets-dest android/app/src/main/res/"
然后cd 你创建的项目的根目录下执行下面代码
react-native start > /dev/null 2>&1 & curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
接下来再试试run-android,有效果了吗
0 0
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- could not get batchedbridge, make sure your bundle is packaged correctly
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- could not get batchedbridge, make sure your bundle is packaged correctly
- could not get batchedbridge, make sure your bundle is packaged correctly
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- react-native 运行报Could not get BatchedBridge, make sure your bundle is packaged correctly 错误
- Could not get BatchedBridge, make sure your bundle is packaged correctly问题解决
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- could not get batchedbridge, make sure your bundle is packaged correctly
- React-native 常见错误:Could not get BatchedBridge, make sure your bundle is packaged correctly
- react-native报错Could not get BatchedBridge, make sure your bundle is packaged correctly
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- React Native 报错 Could not get BatchedBridge, make sure your bundle is packaged correctly.
- 红屏问题"Could not get BatchedBridge, make sure your bundle is packaged correctly"
- Opus:IETF低延迟音频编解码器:API和操作手册
- SQL exists 写法
- POJ 2528 Mayor's posters 线段树+离散化
- centos7 把/boot 分区从xfs格式转换为ext3格式以及grub2引导pbr
- 时间序列分析:ts/mts基础数据类型
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- zookeeper部署以及集群
- gson报错找不到类
- struts2 action中set,get方法的作用
- windows上搭建伪zookeeper集群方法二
- 全面介绍Android Studio中Git 的使用(二)
- 9. Palindrome Number
- HIbernate批量插入
- 二进制中有多少个1