title: Flutter + Firebase + Google SigIn
body: <p>Im getting the error:</p>
  
  <p>PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null</p>
  
  <p>I have done almost everything i founded...</p>
  
  <ol>
  <li>SHA1 and SHA256 (debug mode)</li>
  <li>Created the credentials on Google</li>
  <li>Updated google services plugin and gradle in the build.gradle</li>
  <li>Added the class path of the google-service and apply de plugin in build.gradle</li>
  <li>Added e-mail support on FireBase</li>
  <li>Added my e-mail, as support e-mail in configurations</li>
  <li>Lots and lots of 'flutter clean'</li>
  </ol>
  
  <p>It is working on iOS simulator but not on my Android device.
  I followed the 'recipe' for SigIn With Google and Flutter... and nothing is solving my problem.</p>
  
  <p>Debug mode on VSCode is showing error, when i call the sigIn() method:</p>
  
  <p>Exception has occurred.
  PlatformException (PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null))</p>
  
  <p>Thanks in advance for reading and giving some time.</p>
  
  <p><strong>android/build.gradle:</strong></p>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.3.50'
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.5.0'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
          classpath 'com.google.gms:google-services:4.3.2'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = "${rootProject.buildDir}/${project.name}"
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p><strong>android/app/build.gradle:</strong></p>
  
  <pre><code>def localProperties = new Properties()
  def localPropertiesFile = rootProject.file('local.properties')
  if (localPropertiesFile.exists()) {
      localPropertiesFile.withReader('UTF-8') { reader -&gt;
          localProperties.load(reader)
      }
  }
  
  def flutterRoot = localProperties.getProperty('flutter.sdk')
  if (flutterRoot == null) {
      throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
  }
  
  def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  if (flutterVersionCode == null) {
      flutterVersionCode = '1'
  }
  
  def flutterVersionName = localProperties.getProperty('flutter.versionName')
  if (flutterVersionName == null) {
      flutterVersionName = '1.0'
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
  
  android {
      compileSdkVersion 28
  
      sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
      }
  
      lintOptions {
          disable 'InvalidPackage'
          checkReleaseBuilds false
      }
  
      defaultConfig {
          applicationId "com.xxxx.xxxx"
          minSdkVersion 21
          targetSdkVersion 28
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
          testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
      }
  
      buildTypes {
          release {
              signingConfig signingConfigs.debug
          }
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
      implementation 'androidx.multidex:multidex:2.0.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test:runner:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>