Firebase.auth appears as unresolved reference
clcmo opened this issue · comments
Camila L. Oliveira commented
I'll try to use the Firebase auth reference on my project, but it won't works.
Rosário P. Fernandes commented
Hi @clcmo
Make sure you're using the Firebase dependency suffixed with -ktx
:
implementation 'com.google.firebase:firebase-auth-ktx'
See our documentation on how to setup Firebase Auth on Android.
If you already have that dependency and the error is still there, you can also try manually importing Firebase
and auth
at the top of your Kotlin file:
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
Rosário P. Fernandes commented
@clcmo It's been a while since this issue has opened, so I'm going to close it now.
Feel free to re-open if you're still facing this issue.