Android 安卓谷歌登录
我正在尝试将谷歌登录添加到我的应用程序中,但这对我来说并不容易。我发现,这个问题在wersions的某个地方,但我无法处理。你能帮帮我吗? 我的应用程序级别build.gradle:Android 安卓谷歌登录,android,kotlin,google-login,Android,Kotlin,Google Login,我正在尝试将谷歌登录添加到我的应用程序中,但这对我来说并不容易。我发现,这个问题在wersions的某个地方,但我无法处理。你能帮帮我吗? 我的应用程序级别build.gradle: apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 28 defau
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.goodrequest.quotes"
minSdkVersion 23
targetSdkVersion 28
multiDexEnabled true
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-database:11.8.0'
compile 'com.android.support:recyclerview-v7:28.0.0'
compile 'com.android.support:design:28.0.0'
compile 'com.android.support:multidex:1.0.3'
compile 'com.google.android.gms:play-services-auth:16.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
日志:
我认为您的build.gradle文件中缺少Firebase Auth gradle依赖项。 添加以下依赖项:
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
问题出现在firebase的错误版本中:implementation'com.google.firebase:firebase数据库:11.8.0改为:implementation'com.google.firebase:firebase数据库:16.0.5'yeah。。我们应该尝试使用gradle dependency中的最新版本,否则它可能会给我们带来冲突错误。为什么要删除
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'