我正在尝试进行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