找不到 com.google.android.gms.internal.zzaja 的类文件 [英] Class file for com.google.android.gms.internal.zzaja not found

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

问题描述

我正在使用 Fragment 来设计 Firebase 简单登录注册.

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

我在初始化时 OnCreateView() 方法中出错

I get error in the OnCreateView() method on initializing

auth = FirebaseAuth.getInstance();

错误:- 错误:(58, 28) 错误:无法访问 zzaja找不到 com.google.android.gms.internal.zzaja 的类文件请帮忙来源:- http://www.androidhive.info/2016/06/android-getting-started-firebase-simple-login-registration-auth/

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/

推荐答案

我今天解决了这个确切的问题,并在此过程中偶然发现了这个悬而未决的问题.

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

首先,确保您已按照此处的说明正确设置了适用于 Android 的 Firebase:https://firebase.google.com/文档/安卓/设置.然后,确保您正在编译最新版本的 Firebase API (9.2.0) 和您正在使用的 Google Play Services API (9.2.0).我的 gradle 依赖项如下所示:

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'
}

希望这有帮助!

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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆