title: Flutter Firebase.signInWithGoogle method not found
body: <p>I am trying to add Google Authentication in my Flutter Application. But my Android studio is not able to find the method <strong>signInWithGoogle</strong> under <strong>FirebaseAuth</strong> class. I mean to say when I write FirebaseAuth.<strong>signInWithGoogle</strong> Android studio complains saying <strong>The method signInWithGoogle isn't defined for the class Firebase</strong>. </p>
  
  <p>I already have the have <strong>Firebase.signInWithEmailAndPassword</strong> and it is working fine.</p>
  
  <p>I have below dependency in pubspec.yaml
  firebase_auth: ^0.8.0+1</p>
  
  <p>Below are my imports in the class...</p>
  
  <pre><code>import 'package:firebase_auth/firebase_auth.dart';
  import 'package:flutter/material.dart';
  import 'package:google_sign_in/google_sign_in.dart';
  import 'package:my_project/auth.dart';
  import 'package:my_project/register.dart';
  import 'package:my_project/signin/button_list.dart';
  import 'package:my_project/signin/button_view.dart';
  import 'package:my_project/utils.dart';
  class _LoginPageState extends State&lt;LoginPage&gt; {
   final formKey = GlobalKey&lt;FormState&gt;();
  
  // Google Sign In
  final GoogleSignIn _googleSignIn = GoogleSignIn();
  final FirebaseAuth _auth = FirebaseAuth.instance; // No errors so far
  </code></pre>
  
  <p>below is the method in the same class that shows the error
  <a href="https://i.stack.imgur.com/wiMQj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wiMQj.png" alt="enter image description here"></a></p>
  
  <p>Also when I click the ctrl + space to see all the methods under <strong>FirebaseAuth</strong> it is not showing the <strong>signInWithGoogle</strong> method at all.</p>
  
  <p><a href="https://i.stack.imgur.com/cUFzx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cUFzx.png" alt="enter image description here"></a>   </p>
  
  <p>please help!
  Thanks in Advance...</p>