title: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
body: <p>I've searched the whole internet, tried every possible solution, still I'm not being able to sign in using GoogleSignIn from my flutter app.</p>
  
  <p>Things I've tried :<br>
  1. Added SHA-1 Certificate<br>
  2. Added SHA-256 Certificate<br>
  3. Filled O-Auth Screen<br>
  4. Enabled GoogleSignIn in firebase<br>
  5. Added support email</p>
  
  <p>Testing currently only in debug mode. As the app is in its initial stages right now I don't want to build a release version yet. Using debug SHA-1 and SHA-256 fingerprints.</p>
  
  <pre><code>Future&lt;FirebaseUser&gt; _signIn(BuildContext context) async {
  final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
  final GoogleSignInAuthentication googleAuth =
      await googleUser.authentication;
  
  final AuthCredential credential = GoogleAuthProvider.getCredential(
      accessToken: googleAuth.accessToken, idToken: googleAuth.idToken);
  
  AuthResult userDetails =
      await _firebaseAuth.signInWithCredential(credential);
  ProviderDetails providerInfo = 
  ProviderDetails(userDetails.user.providerId);
  
  List&lt;ProviderDetails&gt; providerData = List&lt;ProviderDetails&gt;();
  providerData.add(providerInfo);
  
  UserDetails details = UserDetails(
      providerDetails: userDetails.user.providerId,
      userEmail: userDetails.user.email,
      userName: userDetails.user.displayName,
      photoUrl: userDetails.user.photoUrl,
      providerData: providerData);
  
  return userDetails.user;
  }
  </code></pre>
  
  <p>Error I get </p>
  
  <pre><code>[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 
  PlatformException(sign_in_failed, 
  com.google.android.gms.common.api.ApiException: 10: , null)
  E/flutter (12322): #0      StandardMethodCodec.decodeEnvelope 
  package:flutter/…/services/message_codecs.dart:564
  E/flutter (12322): #1      MethodChannel.invokeMethod 
  package:flutter/…/services/platform_channel.dart:316
  E/flutter (12322): &lt;asynchronous suspension&gt;
  E/flutter (12322): #2      MethodChannel.invokeMapMethod 
  package:flutter/…/services/platform_channel.dart:344
  E/flutter (12322): &lt;asynchronous suspension&gt;
  E/flutter (12322): #3      GoogleSignIn._callMethod 
  package:google_sign_in/google_sign_in.dart:218
  E/flutter (12322): &lt;asynchronous suspension&gt;
  E/flutter (12322): #4      GoogleSignIn._addMethodCall.&lt;anonymous closure&gt; 
  package:google_sign_in/google_sign_in.dart:27
  E/flutter (12322): #5      _rootRun  (dart:async/zone.dart:1120:38)
  E/flutter (12322): #6      _CustomZone.run  (dart:async/zone.dart:1021:19)
  E/flutter (12322): #7      _FutureListener.handleWhenComplete  
  (dart:async/future_impl.dart:150:18)
  E/flutter (12322): #8      
  Future._propagateToListeners.handleWhenCompleteCallback  
  (dart:async/future_impl.dart:609:39)
  E/flutter (12322): #9      Future._propagateToListeners   
  (dart:async/future_impl.dart:665:37)
  E/flutter (12322): #10     Future._addListener.&lt;anonymous closure&gt;  
  (dart:async/future_impl.dart:348:9)
  E/flutter (12322): #11     _rootRun  (dart:async/zone.dart:1124:13)
  E/flutter (12322): #12     _CustomZone.run  (dart:async/zone.dart:1021:19)
  E/flutter (12322): #13     _CustomZone.runGuarded  
  (dart:async/zone.dart:923:7)
  E/flutter (12322): #14     _CustomZone.bindCallbackGuarded.&lt;anonymous 
  closure&gt;  (dart:async/zone.dart:963:23)
  E/flutter (12322): #15     _microtaskLoop  
  (dart:async/schedule_microtask.dart:41:21)
  E/flutter (12322): #16     _startMicrotaskLoop  
  (dart:async/schedule_microtask.dart:50:5)
  E/flutter (12322):
  </code></pre>