問題描述
我正在使用 Fragment 來設(shè)計(jì) Firebase 簡(jiǎn)單的登錄注冊(cè).
I am using Fragment for the designing of the Firebase simple login registration.
我在 OnCreateView()
方法初始化時(shí)出錯(cuò)
I get error in the OnCreateView()
method on initializing
auth = FirebaseAuth.getInstance();
錯(cuò)誤:- 錯(cuò)誤:(58, 28) 錯(cuò)誤: 無法訪問 zzaja找不到 com.google.android.gms.internal.zzaja 的類文件請(qǐng)幫忙來源:- 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/
推薦答案
我今天解決了這個(gè)確切的問題,在這個(gè)過程中偶然發(fā)現(xiàn)了這個(gè)沒有答案的問題.
I solved this exact problem today and stumbled onto this unanswered question by chance during the process.
首先,確保您已正確設(shè)置 Firebase for Android,如下所述:https://firebase.google.com/文檔/安卓/設(shè)置.然后,確保您正在編譯您正在使用的最新版本的 Firebase API (9.2.0) 和 Google Play Services API (9.2.0).我的 gradle 依賴項(xiàng)看起來像這樣:
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'
}
希望這會(huì)有所幫助!
這篇關(guān)于未找到 com.google.android.gms.internal.zzaja 的類文件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!