22 thoughts on “Example of Google Sign In in React Native Android and iOS App”

  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?

  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.

    • 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.

  4. i have a problem occurred evaluating project ‘:app’.
    > Could not find method compile() for arguments [project ‘:react-native-google-signin’] on project ‘:app’ of type org.gradle.api.Project.

    Can you tell me what is this error and how to fix this please, thanks you.

Leave a Comment

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

For Query / Bug / Problem / Issues we have introduced query trackerKnow More
+