Skip to content Skip to sidebar Skip to footer

Cannot Resolve Symbol 'AuthUI'

I am adding firebase google and Gmail sign in but when I pasted my code in onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) method i got this error Cannot resolve symbol '

Solution 1:

FirebaseUI Version  Firebase/Play Services Version
 2.3.0               11.0.4

You should add this in your build.gradle section .

compile 'com.firebaseui:firebase-ui-auth:2.3.0' 

Solution 2:

This is confusing but you have to implement 2 firebase library for using UI.

implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.firebaseui:firebase-ui-auth:4.1.0'

Solution 3:

You should add this in your build.gradle section .

compile 'com.github.bumptech.glide:glide:3.6.1'
    compile 'com.google.firebase:firebase-core:9.6.1'
    compile 'com.google.firebase:firebase-database:9.6.1'
    compile 'com.google.firebase:firebase-auth:9.6.1'
    compile 'com.firebaseui:firebase-ui-auth:0.6.1'
    compile 'com.google.firebase:firebase-storage:9.6.1'
    compile 'com.google.firebase:firebase-messaging:9.6.1'
    compile 'com.google.firebase:firebase-config:9.6.1'

Solution 4:

Only need to add below line on build.gradle

implementation 'com.firebaseui:firebase-ui-auth:6.2.0'


Post a Comment for "Cannot Resolve Symbol 'AuthUI'"