如何修复与服务器的连接不成功.(文件///android_asset/www/index.html) [英] How to fix the connection to the server was unsuccessful. (file ///android_asset/www/index.html)

查看:12
本文介绍了如何修复与服务器的连接不成功.(文件///android_asset/www/index.html)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ionic2 app 中添加了素材图标,从那以后我收到错误"与服务器的连接不成功.(file:///android_asset/www/index.html)""尽管 MaterialIcons 的 css 和字体文件位于 assets 文件夹中(我已在本地安装),但没有调用 "https://fonts.googleapis.com/icon?family=Material+Icons"我能做什么 ?我可以解决它还是知道为什么突然超时.

解决方案

添加

到config.xml

I've added material icons to ionic2 app , and since then I get error ""The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"" although the css and fonts file of MaterialIcons are in the assets folder (I've install it locally) there is no call to "https://fonts.googleapis.com/icon?family=Material+Icons" what can I do ? Can I fix it or know why the timeout suddenly .

解决方案

Add <preference name="loadUrlTimeoutValue" value="60000" /> To config.xml

这篇关于如何修复与服务器的连接不成功.(文件///android_asset/www/index.html)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆