There is a problem in understanding
I have the next:
global packages:
@ionic /cli-utils : 1.1.2
Cordova CLI : 7.0.1
Ionic CLI : 3.1.2
local packages:
@ionic /app-scripts : 1.3.7
@ionic /cli-plugin-cordova : 1.2.0
@ionic /cli-plugin-ionic-angular : 1.2.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.2.1
System:
Node : v6.10.2
OS : OS X El Capitan
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
Here are my steps:
ionic start myApp tabs
cd myApp
cordova add platforme android
cordova run android
and I have the error: ERR_FILE_NOT_FOUND(file:///android_asset/www/index.html)
in the emulator
Everything worked well before I installed the plugin
$ ionic cordova plugin add cordova-plugin-nativestorage
end $ npm install --save @ionic-native/native-storage
But I added <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
into AndroidManifest.xml and it worked!!!
Why it worked without that line before?
Thanks all
Try using Ionic commands:
ionic cordova platform add android
ionic cordova run android
This should build your app before running the Cordova stuff.
Thank you )
instead cordova add platform android
--> cordova platform add android
but ionic cordova run android
works great!
1 Like
Yep, copypasta error Fixed it.
Hi Sujan,
I am also getting the same error. I tried as per your suggestion but still getting the same error.
Please advise …
Regards
Ankit
Hello everyone, I’m having same issue, I already made this:
$ ionic cordova platform remove android
$ ionic cordova platform add android
Changed the line inside AndroidManifest.xml
still getting same error please somebody can help?
Does this also happen with a newly created project?
If yes, please post your ionic info
output.
it is the same issue with every project.
E:\Ankit\ionicApps\abc>ionic info
global packages:
@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.0
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.0.1
System:
Node : v6.10.3
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
vidyalaya247:
npm : 3.10.10
This is all “old”, newer more stable versions available. You should upgrade.
Hi Sujan
I have updated the same with below version but still getting the same white screen.
E:\Ankit\ionicApps\abc>ionic info
global packages:
@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 2.0.0
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.2.1
System:
Node : v6.10.3
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.1.0
Please suggest.
Still not the newest version.
For debugging the white screen:
Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: Remote Debug your Ionic App · ionic.zone Look at the console and network tabs for errors.
add this in your config.xml
<preference name="loadUrlTimeoutValue" value="700000" />