com.firebase.ui.auth.FirebaseUiException:保存凭证时出错

时间:2019-06-22 17:01:27

标签: android firebase firebase-authentication firebaseui

使用Firebase.ui.auth和Google登录登录我的应用程序时会发生此错误,由于该错误,也无法从Firestore获取数据。

2019-06-22 22:16:57.237 6793-6793/meter.meterE/AuthUI: A sign-in error occurred.
    com.firebase.ui.auth.FirebaseUiException: Error when saving credential.
        at com.firebase.ui.auth.viewmodel.smartlock.SmartLockHandler$1.onComplete(SmartLockHandler.java:98)
        at com.google.android.gms.tasks.zzj.run(Unknown Source:4)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: com.google.android.gms.common.api.ApiException: 6: Passphrase required.
        at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(Unknown Source:4)
        at com.google.android.gms.common.internal.zai.zaf(Unknown Source:2)
        at com.google.android.gms.common.internal.zaj.onComplete(Unknown Source:6)
        at com.google.android.gms.common.api.internal.BasePendingResult.zaa(Unknown Source:172)
        at com.google.android.gms.common.api.internal.BasePendingResult.setResult(Unknown Source:131)
        at com.google.android.gms.common.api.internal.BaseImplementation$ApiMethodImpl.setResult(Unknown Source:36)
        at com.google.android.gms.internal.auth-api.zzo.zzc(Unknown Source:4)
        at com.google.android.gms.internal.auth-api.zzv.dispatchTransaction(Unknown Source:9)
        at com.google.android.gms.internal.auth-api.zzd.onTransact(Unknown Source:12)
        at android.os.Binder.execTransact(Binder.java:731)

1 个答案:

答案 0 :(得分:0)

当您的Google帐户密码受到密码保护时,就会发生这种情况。我认为这应该是ResolvableApiException,但是他们没有为这种情况下的编码分辨率处理做出任何努力。因此,您必须忍受密码短语用户将无法从Smart Lock中受益的事实。为了进行测试,您可以重置密码。查看说明:https://support.google.com/chrome/answer/165139