Search code examples
androidwebviewandroid-webviewwebviewclient

The method onReceivedError(WebView, int, String, String) is undefined for the type WebChromeClient


The method onReceivedError(WebView, int, String, String) is undefined for the type WebChromeClient


Solution

  • Yes. That's because it's defined on WebViewClient, not WebChromeClient. http://developer.android.com/reference/android/webkit/WebViewClient.html#onReceivedError(android.webkit.WebView, int, java.lang.String, java.lang.String)