Class file for com.google.android.gms.internal.zzaja not found

Abhishek Kumar picture Abhishek Kumar · Jun 28, 2016 · Viewed 103.1k times · Source

I am using Fragment for the designing of the Firebase simple login registration.

I get error in the OnCreateView() method on initializing

auth = FirebaseAuth.getInstance();

error:- Error:(58, 28) error: cannot access zzaja class file for com.google.android.gms.internal.zzaja not found please help source:- http://www.androidhive.info/2016/06/android-getting-started-firebase-simple-login-registration-auth/

Answer

Amar Bakir picture Amar Bakir · Jun 28, 2016

I solved this exact problem today and stumbled onto this unanswered question by chance during the process.

First, ensure you've properly setup Firebase for Android as documented here: https://firebase.google.com/docs/android/setup. Then, make sure you are compiling the latest version of the Firebase APIs (9.2.0) and the Google Play Services APIs (9.2.0) that you are using. My gradle dependencies look something like this:

dependencies {
    ...
    compile 'com.google.android.gms:play-services-location:9.2.0'
    compile 'com.google.firebase:firebase-core:9.2.0'
    compile 'com.google.firebase:firebase-auth:9.2.0'
    compile 'com.google.firebase:firebase-messaging:9.2.0'
}

Hope this helps!