如何修复与服务器的连接失败。 (文件///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和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屋!