script error: file:///android_asset/webkit/android-web error.png

1,151 views
Skip to first unread message

Alberto Filannino

unread,
Jul 29, 2016, 7:33:59 AM7/29/16
to DroidScript
Hi, I wrote a little application with a WebView. When the network is down the app says "script error: file:///android_asset/webkit/android-web error.png"
How I can solve this problem?

Thank you very much

Steve Garman

unread,
Jul 29, 2016, 9:41:46 AM7/29/16
to DroidScript
Can you post the code you are using to populate the WebView, please?

What version of Android is your device running?

sankarshan dudhate

unread,
Jul 29, 2016, 10:21:42 AM7/29/16
to DroidScript
Hi guys,

I get this everytime there's an error on my Micromax Unite 2 running Android 5.0 and also used to get it when the device was running on KitKat.

Until today, I took this as the default error handling situation. Isn't that the case ?

Regards,
Sankarshan

Steve Garman

unread,
Jul 29, 2016, 10:58:23 AM7/29/16
to DroidScript
When I try to connect to an online website and my WiFi and data connection are off, I get this.

To save me experimenting for half an hour, I thought it would be nice if someone posted some code.

Screenshot_20160729-155002.png

Dave Smart

unread,
Jul 29, 2016, 12:14:00 PM7/29/16
to DroidScript
If you add the "IgnoreErrors" option when you create the webview, then that android-web error.png message should go away. 

(Note: I've tried to get rid of that message by creating the asset is wants in the correct place but it still pops up annoyingly)

Netpower8

unread,
Jul 29, 2016, 5:54:13 PM7/29/16
to DroidScript
I get this error too wed trying out the webview codes. Making it ignore errors only work for a certain time but this pop ups again. Did not post about it since i have other codes to finish so this took the back seat. Also thought its a default error. But come to think of it if it cant handle that error properly the apk app could just exit without or force close immediately.

Steve Garman

unread,
Jul 29, 2016, 8:41:23 PM7/29/16
to DroidScript
Interesting, it seems the reason I am not seeing this error is that I am using a later (beta) version of the Android System Webview.

If I revert to the original system webview, I get the error.

The current Google plan is to roll out the new System Webview starting early next week.

This rollout will only affect users on lollipop, Marshmallow and (presumably) N

If you see a change to this behaviour in the next few days, could you let us know please.


Manuel Lopes

unread,
Jul 29, 2016, 9:36:24 PM7/29/16
to DroidScript
you mean not appear this error when offline use with webview example?ok if is this i will report because same error in my android 4.4.2

stamja

unread,
Jul 30, 2016, 7:30:01 AM7/30/16
to DroidScript
To date I've been using app.SetOnError() to trap the error and take remedial action. That specific error usually means only one thing (network unavailable) so I just load html with an explanation to that effect.
Reply all
Reply to author
Forward
0 new messages