本文介绍了未找到com.google.android.gms.internal.zzaja的类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在 OnCreateView() $ b $ $ p $ auth = FirebaseAuth.getInstance();

错误:错误:(58,28)错误:无法访问zzaja
类文件for com.google.android.gms.internal.zzaja找不到
请帮助
来源: -

解决方案

我今天解决了这个确切的问题,偶然偶然发现了这个没有答案的问题。首先,请确保您已正确设置Firebase for Android,如下所述:。然后,确保您正在编译最新版本的Firebase API(9.2.0)和您正在使用的Google Play服务API(9.2.0)。我的gradle依赖关系如下所示:

 依赖关系{
...
compile'c​​om.google .android.gms:play-services-location:9.2.0'
compile'c​​om.google.firebase:firebase-core:9.2.0'
compile'c​​om.google.firebase:firebase-auth :9.2.0'
compile'c​​om.google.firebase:firebase-messaging:9.2.0'
}

希望这有助于!


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 zzajaclass file for com.google.android.gms.internal.zzaja not foundplease helpsource:- http://www.androidhive.info/2016/06/android-getting-started-firebase-simple-login-registration-auth/

解决方案

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!

这篇关于未找到com.google.android.gms.internal.zzaja的类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 20:58