About Snehal Agrawal

#SelfLearner #MobileAppDeveloper #TechnologyMiner #OpenSourceLover thats enough to describe me..

View all posts by Snehal Agrawal →

7 Comments on “Example of Google Sign In in React Native”

  1. Once execute the above code I got below error, how to solve it

    The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

    How to solve this?

    1. in android/build.gradle, ext {
      buildToolsVersion = “27.0.3”
      minSdkVersion = 16
      compileSdkVersion = 27
      targetSdkVersion = 26
      supportLibVersion = “27.1.1”
      googlePlayServicesAuthVersion = “15.0.1” // googleplayservice
      }

  2. Once execute the above code I got below error, how to solve it

    Failed to capture snapshot of input files for task ‘:app:preDebugBuild’ property ‘runtimeManifests’ during up-to-date check.
    > The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

    1. ext {
      buildToolsVersion = “27.0.3”
      minSdkVersion = 16
      compileSdkVersion = 27
      targetSdkVersion = 26
      supportLibVersion = “27.1.1”
      googlePlayServicesAuthVersion = “15.0.1” // googleplayservice
      }

  3. const userInfo = await GoogleSignin.signIn();
    console.log(‘User Info –> ‘, userInfo);

    I have followed all the steps, but signIn() function is throwing same error every time and it is the sign in is in process.

    what could be the possible reasons.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.