无法加载资源:net :: ERR_FILE_NOT_FOUND离子错误 [英] Failed to load resource: net::ERR_FILE_NOT_FOUND ionic error

查看:199
本文介绍了无法加载资源:net :: ERR_FILE_NOT_FOUND离子错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在config.xml中安装了白名单插件

I have install whitelist plugin and in config.xml

<access origin="*"/>
<allow-navigation href="*" />

但是

我遇到错误

Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/ion-autocomplete/dist/ion-autocomplete.css Failed to load   resource: net::ERR_FILE_NOT_FOUND
file:///css/ionic.app.css Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/ionic/js/ionic.bundle.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/ngCordova/dist/ng-cordova.min.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///cordova.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/moment/moment.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/angular-bootstrap/ui-bootstrap-tpls.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar-tpls.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/x2js/xml2json.min.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///lib/ionic-ajax-interceptor/dist/ionic-ajax-interceptor.min.js Failed to load resource: net::ERR_FILE_NOT_FOUND

当我在浏览器中进行测试时,它运行良好,但是在移动设备上进行测试时,我却遇到了上面的错误.

It works fine when i test in browser but on testing on mobile device i am getting error above.

我已经浏览了所有可用的解决方案,但目前可以解决

I have gone through all the solution available but can fix it at the moment

谢谢

推荐答案

尝试添加所有这些

<access origin="*"/>
<access origin="tel:*" launch-external="yes"/>
<allow-navigation href="*"/>
<allow-navigation href="http://*/*"/>
<allow-navigation href="https://*/*"/>
<allow-navigation href="data:*"/>
<allow-intent href="*"/>
<access origin="*"/>

到您的config.xml文件

这篇关于无法加载资源:net :: ERR_FILE_NOT_FOUND离子错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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