title: Cannot resolve method 'setWebChromeClient(anonymous android
body: <p>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 <code>webView.setWebChromeClient(...</code> I'm getting the following error message: <code>Cannot resolve method 'setWebChromeClient(anonymous android.webkit.WebChromeClient)</code>.</p>
  
  <p>If it will help anything, I have added the needed permissions in my AndroidManifest.xml:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_GPS" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_ASSISTED_GPS" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <p><a href="https://i.stack.imgur.com/OjPaV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OjPaV.jpg" alt="enter image description here"></a></p>