firebase / snippets-android

Android snippets for firebase.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase.auth appears as unresolved reference

clcmo opened this issue · comments

I'll try to use the Firebase auth reference on my project, but it won't works.

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

@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.