Firebase google身份验证标志失败

时间:2016-11-27 06:30:01

标签: android firebase firebase-authentication google-authentication

我正在尝试进行Firebasegoogle身份验证,但每次都要

public void onComplete(@NonNull Task<AuthResult> task)

task.isSuccessful()与后续异常

错误
com.google.firebase.FirebaseException: An internal error has occurred. [ Bad Request ]
    at com.google.android.gms.internal.zzbix.zzcb(Unknown Source)
    at com.google.android.gms.internal.zzbiu$zzj.zza(Unknown Source)
    at com.google.android.gms.internal.zzbjf.zzcc(Unknown Source)
    at com.google.android.gms.internal.zzbjf$zza.onFailure(Unknown Source)
    at com.google.android.gms.internal.zzbja$zza.onTransact(Unknown Source)
    at android.os.Binder.execTransact(Binder.java:446)

我将SHA1密钥正确添加到Firebaseconsole,将google-services.json添加到我的app文件夹。如果出现其他任何问题,请告诉我

My Project gradle包括:

classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.google.gms:google-services:3.0.0'

App gradle包括:

compile 'com.google.android.gms:play-services-base:10.0.0'
compile 'com.google.firebase:firebase-auth:10.0.0'
compile 'com.google.android.gms:play-services-auth:10.0.0'
compile 'com.google.firebase:firebase-core:10.0.0'
compile 'com.google.firebase:firebase-messaging:10.0.0'

使用以下配置:

compileSdkVersion 25
buildToolsVersion "25.0.0"
minSdkVersion 19
targetSdkVersion 25

0 个答案:

没有答案