Webview shows error “Didn't find class ”android.webkit.RenderProcessGoneDetail"

后端 未结 4 1559
星月不相逢
星月不相逢 2020-12-03 09:55

My tablet Android version is 7.0 and Chrome version 62.0.3202.84.

When first run my webview app, debug window show

Didn\'t find class \"andro

4条回答
  •  心在旅途
    2020-12-03 10:32

    I had the same log message but the worst part is that it was opening chrome to load the page. That was a problem since when the back button was pressed, the user was brought back to the activity with a blank page.

    So what I did, is I just set the WebViewClient on the webView:

    webview.setWebViewClient(new WebViewClient());
    

    Now the error log is gone and the page is loading in the webview.

    Hope this helps anyone!

提交回复
热议问题