react-native 解决“Could not get BatchedBridge...” 的问题
2016-08-18 00:00
501 查看
![](http://i.stack.imgur.com/WGu6C.png)
$> cd myproject $> 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"
(if the folder
assetsdoes not exists create it)
Then run from project root
$> (cd android/ && ./gradlew assembleDebug)
install the created apk to you device, from location:
android/app/build/outputs/apk/app-debug.apk
or -----------修改package.json
"scripts": { "build": "(cd android/ && ./gradlew assembleDebug)", "start": "node node_modules/react-native/local-cli/cli.js start", "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/" },
相关文章推荐
- react native 问题(mac系统) Could not get BatchedBridge, make sure your bundle is packaged correctly 问题解决
- React Native 解决 Could not get BatchedBridge
- React-Native:解决真机调试时候Could not get BatchedBridge, make sure your bundle is packaged properly
- React-native打包遇到问题:Could not get BatchedBridge
- 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问题的解决
- React-native 常见错误:Could not get BatchedBridge, make sure your bundle is packaged correctly
- react-native 解决Could not find method android() for arguments问题
- 红屏问题"Could not get BatchedBridge, make sure your bundle is packaged correctly"
- React Native 解决 Could not get BatchedBridge
- Could not get BatchedBridge, make sure your bundle is packaged correctly 错误解决方法
- Mac环境下的React-Native环境配置流程(主要解决问题Could not install the app on the device)
- 关于React Native 报Export declarations are not supported by current JavaScript version错误的解决问题
- Could not get BatchedBridge, make sure your bundle is packaged properly
- 关于React Native 报Export declarations are not supported by current JavaScript version错误的解决问题
- Could not get BatchedBridge, make sure your bundle is packaged correctly
- could not get batchedbridge, make sure your bundle is packaged correctly
- React Native error “Could not get BatchedBridge
- Linux实战问题解决方案(1):Could not get lock