使用Firebase将电话身份验证添加到我的应用时,我遇到错误

时间:2019-12-30 06:37:24

标签: android firebase firebase-authentication

  private void signInWithPhoneAuthCredential(PhoneAuthCredential credential)
    {
        mAuth.signInWithCredential(credential)
                .addOnCompleteListener(this, new OnCompleteListener<AuthResult>()
                {
                    @Override
                    public void onComplete(@NonNull Task<AuthResult> task)
                    {
                        if (task.isSuccessful())
                        {

                        }
                        else
                        {

                        }



                    }
                });
    }

它显示如下错误: 必须声明从oncompletelistener派生的类匿名类

0 个答案:

没有答案