Skip to content Skip to sidebar Skip to footer

Cannot Resolve Method 'setwebchromeclient(anonymous Android

I am trying to learn building applications for Android and the first project is to view a website I've made that uses GPS localization. But when I'm trying to use webView.setWebChr

Solution 1:

Delete the wrong static import on line 13 and move the call to line 31 after assigning a view to the local variable:

WebView view = findViewById(R.id.webView)
view.setWebChromeClient(...)

Post a Comment for "Cannot Resolve Method 'setwebchromeclient(anonymous Android"