如何在Android中实现Firebase身份验证

时间:2019-01-22 02:18:47

标签: android firebase firebase-authentication

我无法在我的应用中使用firebase身份验证。我的android版本的appcomat不支持此版本的firebase

我已将应用版本从28.0.0降低到27.0.0

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-core:16.0.3'
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'
}

2 个答案:

答案 0 :(得分:0)

尝试将最新的SDK用于身份验证和核心, com.google.firebase:firebase-core:16.0.6 com.google.firebase:firebase-auth:16.1.0

https://hub.docker.com/r/selenium/node-base/dockerfile

答案 1 :(得分:0)

我已经找到了解决这个问题的方法-

1)在build.gradle(app)代理中添加一行:-

implementation 'com.android.support:support-v4:28.0.0'

Look at the picture

2)更新build.gradle(project)依赖项:- 将Google服务的类路径从4.1.0更新为4.2.0 update google service