无法解析符号"FirebaseAuth" [英] Cannot resolve symbol 'FirebaseAuth'

查看:125
本文介绍了无法解析符号"FirebaseAuth"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会出现此错误?我的存储库和Google Play服务是最新的,并且使用了Firebase的所有必需步骤,例如在build.gradle(Project和App)中复制Firebase代码.智慧甚至不显示FirebaseAuth,而是显示Firebase的其他成员.

Why am I getting this error? My repository and Google play services are up to date and I've used all the requires steps for using Firebase like copying firebase code in both build.gradle(Project and app). The intellisence doesn't even show FirebaseAuth but displays other members of Firebase.

推荐答案

通过将错误添加到build.gradle文件(对于应用程序)中来解决该错误-

Solved the error by adding this to the build.gradle file(for app) -

implementation 'com.google.firebase:firebase-auth:18.0.0'
implementation 'com.google.android.gms:play-services-gcm:17.0.0'

第二个依赖项是解决版本冲突错误.

The 2nd dependency is to solve the version conflict error.

这篇关于无法解析符号"FirebaseAuth"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆