title: React native google sign in failed - error code 16 (CANCELED)
body: <p>I am working on google-sign-in but getting an error CANCELED and error code is 16.</p>
  
  <p><strong>Steps to Reproduce</strong>
  I can able to check status for GoogleSignin.hasPlayServices(); and popup open to select account. When choose account it show the error CANCELED code 16.</p>
  
  <p><strong>Expected Behavior</strong>
  It should return user info.</p>
  
  <p><strong>Actual Behavior</strong>
  it give error CANCELED code 16.</p>
  
  <p><strong>Environment:</strong>
  <strong><em>1. android/build.gradle:</em></strong></p>
  
  <pre><code>dependencies {
      classpath 'com.android.tools.build:gradle:3.1.2'
      classpath 'com.google.gms:google-services:4.1.0'
  }
  </code></pre>
  
  <p><strong><em>2. android/app/build.gradle:</em></strong></p>
  
  <pre><code>android {
  compileSdkVersion 27
  buildToolsVersion "27.0.3"
  
  defaultConfig {
      applicationId "com.pacelogin"
      minSdkVersion 19
      targetSdkVersion 26
      versionCode 1
      versionName "1.0"
      ndk {
          abiFilters "armeabi-v7a", "x86"
      }
   }
  splits {
      abi {
          reset()
          enable enableSeparateBuildPerCPUArchitecture
          universalApk false  // If true, also generate a universal APK
          include "armeabi-v7a", "x86"
      }
  }
  buildTypes {
      release {
          minifyEnabled enableProguardInReleaseBuilds
          proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
      }
  }
  applicationVariants.all { variant -&gt;
      variant.outputs.each { output -&gt;
          // For each separate APK per architecture, set a unique version code as described here:
          // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
          def versionCodes = ["armeabi-v7a":1, "x86":2]
          def abi = output.getFilter(OutputFile.ABI)
          if (abi != null) {  // null for the universal-debug, universal-release variants
              output.versionCodeOverride =
                      versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
          }
         }
        }
       }
  
   dependencies {
    implementation (project(':react-native-google-signin')){
      exclude group: "com.google.android.gms"
  }
   implementation fileTree(dir: "libs", include: ["*.jar"])
   implementation "com.android.support:appcompat-v7:27.1.1"
   implementation 'com.google.android.gms:play-services-auth:16.0.1'
   implementation "com.facebook.react:react-native:+"  // From node_modules
   implementation 'com.google.firebase:firebase-core:16.0.4'
   implementation "com.google.android.gms:play-services-base:16.0.1"
   implementation "com.google.android.gms:play-services-basement:15.0.1"
  }
  </code></pre>
  
  <blockquote>
    <p>Update : I have refereed <a href="https://www.npmjs.com/package/react-native-google-signin#signin" rel="nofollow noreferrer">this</a> link </p>
  </blockquote>