[Solved] ‘Cannot make a static reference to the non-static method’ error android

Change: WebView.setWebViewClient(yourWebClient); to: webView.setWebViewClient(yourWebClient); By capitalizing the “W” in webView, you’re referring to the to the class android.webkit.WebView. This makes Java look for a static method called setWebViewClient() in that class, which it doesn’t find, and hence throws an error. 1 solved ‘Cannot make a static reference to the non-static method’ error android