Skip to content Skip to sidebar Skip to footer

FireBase Error: Cannot Access Zzanb Class File For Com.google.android.gms.internal.zzanb Not Found

UPD. I have read these question and answer (Class file for com.google.android.gms.internal.zzaja not found). But I doesnt understand what strings i need to add or remove in my proj

Solution 1:

You're mixing libraries from old and new Firebase released. Everything from Firebase that you use should be in parity. This line is reference an library from a very old Firebase release (before it became the Firebase platform at Google):

compile 'com.firebaseui:firebase-ui:0.6.0'

If you want to use the Firebase-UI library, you should use the new version of it that matches the version of the main client library you're using. You're using 10.0.1, so according to the table on the Firebase-UI github I just linked, you want this dependency:

compile 'com.firebaseui:firebase-ui:1.1.1'

Always make sure your Firebase-UI library matches the core Firebase SDK you're using.


Solution 2:

It looks like in your case Doug's fix resolved your issue, but we recently encountered the same problem with a different root cause.

In our case, we had configured our IDE project to use JDK8 but failed to check which version of the JDK was in use in the terminal. Because React Native runs Gradle from the command line when you type 'react-native run-android' Gradle was attempting to build using JDK10 which caused obvious issues since Android currently only supports up to JDK8. Once we configured the terminal to use JDK8 the issue was resolved.

TL;DR: Check what version of the JDK you are using in the terminal.


Solution 3:

Getting following error:
error: cannot access zza
class file for com.google.android.gms.common.internal.safeparcel.zza not found

dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.firebase:firebase-analytics:17.0.1'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
/*    implementation 'com.google.firebase:firebase-core:9.2.0'                        // this line must be included to integrate with Firebase
    implementation 'com.google.firebase:firebase-messaging:10.2.1'                   // this line must be included to use FCM*/
    //implementation 'com.google.android.gms:play-services:10.2.1'
    implementation 'com.google.android.gms:play-services-maps:10.2.1'
    implementation 'com.google.firebase:firebase-core:10.2.1'
    implementation 'com.google.firebase:firebase-messaging:10.2.1'
}

Post a Comment for "FireBase Error: Cannot Access Zzanb Class File For Com.google.android.gms.internal.zzanb Not Found"