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

查看:36
本文介绍了未找到 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.

首先,确保您已正确设置 Firebase for Android,如下所述: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天全站免登陆