反应原生Google登录Android

时间:2018-12-08 14:37:38

标签: android react-native react-native-android

我正在尝试使用react-native-google-login库进行Google登录,但是当我运行命令react-native run-android时,出现此错误。我曾尝试清除缓存等。

app / Gradle

implementation project(':react-native-gesture-handler')
implementation "com.google.android.gms:play-services-base:16.0.1"
implementation "com.google.firebase:firebase-core:16.0.4"
implementation "com.google.firebase:firebase-auth:16.0.5"
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.facebook.android:facebook-android-sdk:4.34.0'
implementation project(':react-native-fbsdk')
implementation(project(":react-native-google-signin"))
implementation project(':react-native-firebase')

渐变

    buildscript {
        ext {
            buildToolsVersion = "27.0.3"
            minSdkVersion = 16
            compileSdkVersion = 27
            targetSdkVersion = 26
            supportLibVersion = "27.1.1"
            googlePlayServicesVersion = "16.0.1"
            googlePlayServicesAuthVersion = "16.0.1"
        }
        repositories {
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.4'
            classpath 'com.google.gms:google-services:3.2.1'

        }
    }
}

enter image description here

0 个答案:

没有答案