James Slattery
James Slattery

Reputation: 325

Firebase dependencies set up correctly but still cannot resolve

New to firebase but when I try to use private FirebaseAuth mAuth; as stated in their Email Auth guide it is not able to resolve. I have set up firebase in the project and it says I have done it correctly.

Do I need to import something on that java file?

enter image description here

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.firebase:firebase-auth:10.2.0'
    compile 'com.android.support:design:25.3.0'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

Upvotes: 0

Views: 3097

Answers (1)

Bob Snyder
Bob Snyder

Reputation: 38289

You need to add:

import com.google.firebase.auth.FirebaseAuth;

Android Studio will help you with unresolved references like this one. Click on the unresolved symbol and enter Alt+Enter. The needed import will be automatically added.

Upvotes: 2

Related Questions