react native android failed to load JS bundle
http://stackoverflow.com/questions/32572399/react-native-android-failed-to-load-js-bundle
adb reverse tcp:8081 tcp:8081
【打开command+m】输入ip配置 :127.0.0.1:8081 需注意要有端口号不然会有bug另外
I'm trying to run AwesomeProject on my Nexus5 (android 5.1.1). I'm able to build the project and install it on the device. But when I run it,I got a red screen saying
In react native iOS,I can choose to load jsbundle offline. How can I do the same thing for Android? (Or at least,where can I configure the server address?) UpdateTo run with local server,run the following commands under your react-native project root directory
please take a look at dsissitka's answer for more details. To run without a server,bundle the jsfile into the apk by running:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |