最新版本React-Native(0.31)开发之Could not connect to development server
2016-09-17 20:18
661 查看
如图当运行React-Native(0.31)时会报如下错误
在React-Native版本0.26之前修改该错误是将URL路径换为本地IP地址(http://192.168.1.102:8081/index.ios.bundle?platform=ios&dev=true)但是在0.31版本中这样修改并不起作用。
经过查阅资料的需要在Plist文件中添加
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>即可起作用
在React-Native版本0.26之前修改该错误是将URL路径换为本地IP地址(http://192.168.1.102:8081/index.ios.bundle?platform=ios&dev=true)但是在0.31版本中这样修改并不起作用。
经过查阅资料的需要在Plist文件中添加
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>即可起作用
相关文章推荐
- react-native 最新版本爬坑经历(unable to load script from assets 和could not connect to development server.)
- React—Native开发之 Could not connect to development server(Android)解决方法
- React—Native开发之 Could not connect to development server(Android)解决方法
- react native mac 下真机调试 Could not connect to development server.
- reactNative Could not connect to development server解决思路
- 关于react-native 运行项目中遇到could not connect to development server的问题
- React Native android could not connect to development server
- React—Native创建项目时遇到的坑(Could not connect to development server),你需要收藏
- React Native android could not connect to development server
- React Native iOS 之Could not connect to development server.
- react native mac 下真机调试 Could not connect to development server.
- 【ReactNative】真机上无法调试 could not connect to development server
- [React Native iOS真机运行输出]Could not connect to development server.
- React Native 误关闭 server 8081运行出现 Could not connect to development server 解决方法
- Could not connect to development server(Android)
- Could not connect to the view server 运行问题补充的脚本 提出上面的错误,怎么解决呢
- 解决 dropdb: could not connect to database postgres: could not connect to server:
- SFTP连接异常 Could not connect to SFTP server. Caused by: com.jcraft.jsch.JSchException: Auth fail
- SFTP连接异常 Could not connect to SFTP server. Connection timed out
- but could not connect over HTTP to server: 'java.sun.com', port: '80'