I've got error 'ERR_FILE_NOT_FOUND(file:///android_assets/www/index.html)' which is poped on my device screen when i run the android using 'cordova run android' in command prompt. so i followed the path 'C:\dev\projects\workshop\platforms\android\assets\www' then there is no index.html really. However there is on more folder named 'starter-www' and the index.html is placed in there. I thought the path is wrong so that i copied the contents of starter-www in 'wwww' folder and deleted the starter-wwww. The starter-wwww folder is created automatically when i run android again and the contents are also deleted in same time.
What is the difference between 'www' and 'starter-wwww' folder? How can i fix this error?
cordova.js, cordova_plugin.js and plugins are in C:\dev\projects\workshop\platforms\android\assets\www. index.html, js, lib, and assets are in C:\dev\projects\workshop\platforms\android\assets\www\starter-www.
I created new project and the 'starter-www' wasn't created this time but i've got the same error. What's wrong with it? ..
Check the internet connection permission is added in manifest file. If it's not, Add the code in your manifest file.
<!-- Internet Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Network State Permissions -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
i Hope it will helps you!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With