如何修复与服务器的连接不成功.(文件///android_asset/www/index.html) [英] How to fix the connection to the server was unsuccessful. (file ///android_asset/www/index.html)
问题描述
我在 ionic2 app 中添加了素材图标,从那以后我收到错误"与服务器的连接不成功.(file:///android_asset/www/index.html)""尽管 MaterialIcons 的 css 和字体文件位于 assets 文件夹中(我已在本地安装),但没有调用 "https://fonts.googleapis.com/icon?family=Material+Icons"我能做什么 ?我可以解决它还是知道为什么突然超时.
添加
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屋!