How to fix the connection to the server was unsuccessful. (file ///android_asset/www/index.html)
Add <preference name="loadUrlTimeoutValue" value="60000" />
To config.xml
Application Error - The connection to the server was unsuccessful. (file://android_asset/www/index.html)
Found the solution. This error occurres even when for some reason Android uses as default WebView Chrome and avoid the Android default WebView, to solve this issue you can select the default WebView from the Deveoper options, in case the selection is locked you have to uninstall chrome or deactivate it.
The connection to the server was unsuccessful.(file:///android_asset/www/index.html)
I'm guessing its the port number your using. Have you tried using port 80 for your server rather than 8081? Its possible that port isn't open on your device.
Related Topics
How to Center Progress Indicator in Progressdialog Easily (When No Title/Text Passed Along)
Sqliteopenhelper Onupgrade() Confusion Android
App-Release-Unsigned.Apk Is Not Signed
How to Extract Code of .Apk File Which Is Not Working
Tab Not Taking Full Width on Tablet Device [Using Android.Support.Design.Widget.Tablayout]
Navigation Drawer to Switch Activities Instead of Fragments
Restrict Edittext to Single Line
How to Create an Avd for Android 4.0
Differencebetween System Apps and Privileged Apps on Android
Android Opengl Texture Compression
Using Build Types in Gradle to Run Same App That Uses Contentprovider on One Device