Android FirebaseException:发生内部错误。[未找到配置]
当我将令牌传递给firebase并返回时,我成功地完成了GoogleSiginAndroid FirebaseException:发生内部错误。[未找到配置],android,google-app-engine,firebase,firebase-authentication,Android,Google App Engine,Firebase,Firebase Authentication,当我将令牌传递给firebase并返回时,我成功地完成了GoogleSigin com.google.firebase.FirebaseException: An internal error has occured. [ CONFIGURATION_NOT_FOUND ] at com.google.android.gms.internal.zzafg.zzes(Unknown Source) at com.google.android.gms.internal.zzafd$z
com.google.firebase.FirebaseException: An internal error has occured. [ CONFIGURATION_NOT_FOUND ]
at com.google.android.gms.internal.zzafg.zzes(Unknown Source)
at com.google.android.gms.internal.zzafd$zzg.zza(Unknown Source)
at com.google.android.gms.internal.zzafo.zzet(Unknown Source)
at com.google.android.gms.internal.zzafo$zza.onFailure(Unknown Source)
at com.google.android.gms.internal.zzafj$zza.onTransact(Unknown Source)
at android.os.Binder.execTransact(Binder.java:458)
在我的代码中,我有
mAuth.signInWithCredential(credential)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
Log.d(TAG, "signInWithCredential:onComplete:" + task.isSuccessful());
// If sign in fails, display a message to the user. If sign in succeeds
// the auth state listener will be notified and logic to handle the
// signed in user can be handled in the listener.
if (!task.isSuccessful()) {
Log.w(TAG, "signInWithCredential", task.getException());
Toast.makeText(LoginActivity.this, "Authentication failed.",
Toast.LENGTH_SHORT).show();
} else {
mAuth.signInWithCredential(凭证)
.addOnCompleteListener(这是新的OnCompleteListener(){
@凌驾
未完成的公共void(@NonNull任务){
Log.d(标记“signInWithCredential:onComplete:+task.isSuccessful()”);
//如果登录失败,则向用户显示消息。如果登录成功
//将通知身份验证状态侦听器,并使用逻辑来处理
//可以在侦听器中处理已登录用户。
如果(!task.issusccessful()){
w(标记“signInWithCredential”,task.getException());
Toast.makeText(LoginActivity.this,“身份验证失败”,
吐司。长度(短)。show();
}否则{
如何实例化凭证
?如何实例化凭证
?