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

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

问题描述

我已向ionic2 app添加了素材图标,从那时起我收到错误与服务器的连接失败。 (file:///android_asset/www/index.html)
虽然MaterialIcons的css和fonts文件位于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 .

推荐答案

添加< preference name =loadUrlTimeoutValuevalue =60000/>
到config.xml

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

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

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