今天用
react-native开发安卓应用的时候出现一个问题,就是出现Unable to download JS bundle的错误,其实这个很简单就能解决了。
cd 到你的开发目录mkdir android/app/src/main/assetscurl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"react-native startreact-native run-android
OK,这样问题就解决了,其实很简单。

发表评论 取消回复