I'm trying to create in my Android app login function with a Google account via Firebase (using the tutorial: https://www.youtube.com/watch?v=zCIfBbm06QM&t=1040s). Unfortunately, I have a problem because the program shows an error in the beginSignIn function in oneTapClient. Do I need to import this function into my file or implement something in Gradle?
This is my code in GoogleAuthUiClient.kt
(I'm using jetpack compose) ;))
I tried to implement gradle from the guy's tutorial file and I tried to look for a solution on the internet.
In order to be able to call beginSignIn() function, the object on which you should call the function should be of type SignInClient and not SignInClientImpl
. As far as I can see in your picture, there is no inheritance relationship between these two classes, hence that red line.
To solve this, you should change the type of the object like this:
oneTapClient: SignInClient
And your error will go gone.