2016-05-26 1 views
0

Ich habe Whitelist-Plugin installieren und in config.xmlfehlgeschlagen Ressource laden: net :: ERR_FILE_NOT_FOUND ionische Fehler

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

aber

Ich erhalte Fehler

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 

Es funktioniert gut wenn ich im Browser teste, aber beim Testen auf dem Mobilgerät bekomme ich einen Fehler oben.

Ich habe durch die ganze Lösung verfügbar gegangen, aber es kann im Moment fix

Dank

Antwort

2

versuchen, alle diese

<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="*"/> 

EDIT fügte hinzu:

Um Ihre config.xml Datei

+0

nicht für mich arbeiten – Anuj

1

Ich bekomme denselben Fehler, in meinem Fall mein Die IP-Adresse war falsch. Überprüfen Sie, ob Sie die IP-Adresse in Ihrem Code verwenden.

1

Siehe link.

entfernen <base href="/"> von Ihrem index.html