問題描述
我正在使用 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 的類文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!