title: Can't sign in with google in flutter with an error `sign_in_failed`
body: <p>I am using <code>google_sign_in</code> (<a href="https://pub.dev/packages/google_sign_in" rel="nofollow noreferrer">https://pub.dev/packages/google_sign_in</a>) in a flutter app. The code I have is </p>
  
  <pre><code>final GoogleSignIn googleSignIn = GoogleSignIn(scopes: ['email']);
  final GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn();
  </code></pre>
  
  <p>When I launch the app, a google signin dialog is popup and after I type in <code>email</code> and <code>password</code>. The popup closed and I got an exception:</p>
  
  <pre><code>I/flutter ( 5062): PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
  </code></pre>
  
  <p>I have signed my apk based on <a href="https://developers.google.com/android/guides/client-auth" rel="nofollow noreferrer">https://developers.google.com/android/guides/client-auth</a></p>
  
  <p>I have searched and found there are some people mention to add this dependency on <code>build.gradle</code>.</p>
  
  <pre><code>classpath 'com.google.gms:google-services:4.3.3'
  </code></pre>
  
  <p>I did that but it doesn't solve the issue. Also I see someone says I need to add SHA1 and SHA256 on firebase console. However, my error happens after google sign in and it hasn't come to firebase step yet. </p>
  
  <p>Also I am not going to use <code>firebase</code>, instead I am using <code>cognito</code> as authentication provider. But I don't think this error relates to <code>firebase</code> or <code>cognito</code>. It fails at the very beginning of this process. I need to get the <code>googleSignInAccount</code> from <code>googleSignIn.signIn();</code> response then put the token to other provider.</p>
  
  <p>So how can I fix the above issue?</p>