title: Flutter:The method 'signInWithGoogle' isn't defined for the class 'FirebaseAuth'
body: <p>I am trying to add a google sign in to my flutter application, but the method <code>googleSignIn</code> always shows the red squiggly lines. When I hover my mouse over it, it says:</p>
  
  <blockquote>
    <p>The method 'signInWithGoogle' isn't defined for the class
    FirebaseAuth.</p>
  </blockquote>
  
  <p>What is the solution to this problem?</p>
  
  <p>I have added and imported all the required dependencies.</p>
  
  <p>The dependencies I use are:</p>
  
  <pre><code>google_sign_in: ^3.2.4
  firebase_auth: ^0.7.0
  </code></pre>
  
  <p>I don't use the latest available dependency versions because of AndroidX Compatibility issue</p>