Failed to initialize reCAPTCHA config: No Recaptcha Enterprise siteKey configured for tenant/project

I writing a chat app and face with trouble with the OTP Authenticate with Firebase on Android using a Phone Number
whenever I write a real phone number there is a error and it dosent work
and shows me this errors:
Failed to initialize reCAPTCHA config: No Recaptcha Enterprise siteKey configured for tenant/project
[SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid app info in play_integrity_token
here is the code:
String phoneNumber;
Long timeoutSeconds = 30L;
String verificationCode; // for verify the otp
PhoneAuthProvider.ForceResendingToken resendingToken; //for resending the otp to the user
EditText otpInput;
Button nextBtn;
ProgressBar progressBar;
TextView resendOtpTextView;
FirebaseAuth mAuth = FirebaseAuth.getInstance();

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login_otp);
otpInput = findViewById(R.id.login_otp);
nextBtn= findViewById(R.id.login_next_btn);
progressBar= findViewById(R.id.login_progressbar);
resendOtpTextView = findViewById(R.id.resend_otp_textview);
// getting the data from another Activity ( phone number --> "LoginOtpActivity")
phoneNumber = getIntent().getExtras().getString("phone");
//starting otp send method with phoneNumber for the first time--> isResend=false
sendOtp(phoneNumber, false); // method
//verifying the OTP code when pressing "NEXT" button
nextBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String enteredOtp = otpInput.getText().toString();
PhoneAuthCredential credential = PhoneAuthProvider.getCredential(verificationCode,enteredOtp);
signIn(credential); // method
setInProgress(true);
}
});
// resending Otp code when pressing "Resend OTP code" textView
resendOtpTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
sendOtp(phoneNumber,true); //method
}
});
}
//Send the otp METHOD
void sendOtp (String phoneNumber, boolean isResend){
startResendTimer();//method
setInProgress(true); // set progressBar visible
PhoneAuthOptions.Builder builder =
PhoneAuthOptions.newBuilder(mAuth)
.setPhoneNumber(phoneNumber)
.setTimeout(timeoutSeconds, TimeUnit.SECONDS)
.setActivity(this)
.setCallbacks(new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {
@Override
// When otp is automatically entered --> move to username
public void onVerificationCompleted(@NonNull PhoneAuthCredential phoneAuthCredential) {
signIn(phoneAuthCredential);
setInProgress(false);// set progressBar gone
}
@Override
//when something went wrong
public void onVerificationFailed(@NonNull FirebaseException e) {
AndroidUtils.showToast(getApplicationContext(),"OTP verification failed");
setInProgress(false);// set progressBar gone
}
@Override
// this will send the otp to the user
public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {
super.onCodeSent(s, forceResendingToken);
verificationCode = s;
resendingToken = forceResendingToken;
AndroidUtils.showToast(getApplicationContext(), "OTP sent successfully");
setInProgress(false);// set progressBar gone
}
});
if (isResend){
//verifying with resendingToken
PhoneAuthProvider.verifyPhoneNumber(builder.setForceResendingToken(resendingToken).build());
}else {
//verify the phone number
PhoneAuthProvider.verifyPhoneNumber(builder.build());
}
}
//set the progressBar/nextBtn to VISIBLE/GONE METHOD
void setInProgress(boolean inProgress){
if (inProgress){
progressBar.setVisibility(View.VISIBLE);
nextBtn.setVisibility(View.GONE);
}else{
progressBar.setVisibility(View.GONE);
nextBtn.setVisibility(View.VISIBLE);
}
}
// login with Firebase and go to next activity METHOD
void signIn(PhoneAuthCredential phoneAuthCredential) {
setInProgress(true);
mAuth.signInWithCredential(phoneAuthCredential).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
setInProgress(false);
Intent intent = new Intent(LoginOtpActivity.this, LoginUsernameActivity.class);
intent.putExtra("phone", phoneNumber);
startActivity(intent);
} else {
AndroidUtils.showToast(getApplicationContext(), "OTP verification failed");
}
}
});
}
// Timer for resending OTP METHOD
void startResendTimer(){
resendOtpTextView.setEnabled(false);
Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
timeoutSeconds--;
resendOtpTextView.setText("Resend OTP in " + timeoutSeconds+" seconds");
if (timeoutSeconds<=0){
timeoutSeconds=30L;
timer.cancel();
runOnUiThread(new Runnable() {
@Override
public void run() {
resendOtpTextView.setEnabled(true);
}
});
}
}
},0,1000);
}
</code>
<code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login_otp); otpInput = findViewById(R.id.login_otp); nextBtn= findViewById(R.id.login_next_btn); progressBar= findViewById(R.id.login_progressbar); resendOtpTextView = findViewById(R.id.resend_otp_textview); // getting the data from another Activity ( phone number --> "LoginOtpActivity") phoneNumber = getIntent().getExtras().getString("phone"); //starting otp send method with phoneNumber for the first time--> isResend=false sendOtp(phoneNumber, false); // method //verifying the OTP code when pressing "NEXT" button nextBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String enteredOtp = otpInput.getText().toString(); PhoneAuthCredential credential = PhoneAuthProvider.getCredential(verificationCode,enteredOtp); signIn(credential); // method setInProgress(true); } }); // resending Otp code when pressing "Resend OTP code" textView resendOtpTextView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { sendOtp(phoneNumber,true); //method } }); } //Send the otp METHOD void sendOtp (String phoneNumber, boolean isResend){ startResendTimer();//method setInProgress(true); // set progressBar visible PhoneAuthOptions.Builder builder = PhoneAuthOptions.newBuilder(mAuth) .setPhoneNumber(phoneNumber) .setTimeout(timeoutSeconds, TimeUnit.SECONDS) .setActivity(this) .setCallbacks(new PhoneAuthProvider.OnVerificationStateChangedCallbacks() { @Override // When otp is automatically entered --> move to username public void onVerificationCompleted(@NonNull PhoneAuthCredential phoneAuthCredential) { signIn(phoneAuthCredential); setInProgress(false);// set progressBar gone } @Override //when something went wrong public void onVerificationFailed(@NonNull FirebaseException e) { AndroidUtils.showToast(getApplicationContext(),"OTP verification failed"); setInProgress(false);// set progressBar gone } @Override // this will send the otp to the user public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) { super.onCodeSent(s, forceResendingToken); verificationCode = s; resendingToken = forceResendingToken; AndroidUtils.showToast(getApplicationContext(), "OTP sent successfully"); setInProgress(false);// set progressBar gone } }); if (isResend){ //verifying with resendingToken PhoneAuthProvider.verifyPhoneNumber(builder.setForceResendingToken(resendingToken).build()); }else { //verify the phone number PhoneAuthProvider.verifyPhoneNumber(builder.build()); } } //set the progressBar/nextBtn to VISIBLE/GONE METHOD void setInProgress(boolean inProgress){ if (inProgress){ progressBar.setVisibility(View.VISIBLE); nextBtn.setVisibility(View.GONE); }else{ progressBar.setVisibility(View.GONE); nextBtn.setVisibility(View.VISIBLE); } } // login with Firebase and go to next activity METHOD void signIn(PhoneAuthCredential phoneAuthCredential) { setInProgress(true); mAuth.signInWithCredential(phoneAuthCredential).addOnCompleteListener(new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (task.isSuccessful()) { setInProgress(false); Intent intent = new Intent(LoginOtpActivity.this, LoginUsernameActivity.class); intent.putExtra("phone", phoneNumber); startActivity(intent); } else { AndroidUtils.showToast(getApplicationContext(), "OTP verification failed"); } } }); } // Timer for resending OTP METHOD void startResendTimer(){ resendOtpTextView.setEnabled(false); Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { @Override public void run() { timeoutSeconds--; resendOtpTextView.setText("Resend OTP in " + timeoutSeconds+" seconds"); if (timeoutSeconds<=0){ timeoutSeconds=30L; timer.cancel(); runOnUiThread(new Runnable() { @Override public void run() { resendOtpTextView.setEnabled(true); } }); } } },0,1000); } </code>
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login_otp);

    otpInput = findViewById(R.id.login_otp);
    nextBtn= findViewById(R.id.login_next_btn);
    progressBar= findViewById(R.id.login_progressbar);
    resendOtpTextView = findViewById(R.id.resend_otp_textview);


    // getting the data from another Activity ( phone number --> "LoginOtpActivity")
    phoneNumber = getIntent().getExtras().getString("phone");

    //starting otp send method with phoneNumber for the first time--> isResend=false
    sendOtp(phoneNumber, false); // method

    //verifying the OTP code when pressing "NEXT" button
    nextBtn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            String enteredOtp = otpInput.getText().toString();
            PhoneAuthCredential credential = PhoneAuthProvider.getCredential(verificationCode,enteredOtp);
            signIn(credential); // method
            setInProgress(true);
        }
    });

    // resending Otp code when pressing "Resend OTP code" textView
    resendOtpTextView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            sendOtp(phoneNumber,true); //method

        }
    });




}

//Send the otp METHOD
void  sendOtp (String phoneNumber, boolean isResend){
    startResendTimer();//method
    setInProgress(true); // set progressBar visible
    PhoneAuthOptions.Builder builder =
            PhoneAuthOptions.newBuilder(mAuth)
                    .setPhoneNumber(phoneNumber)
                    .setTimeout(timeoutSeconds, TimeUnit.SECONDS)
                    .setActivity(this)
                    .setCallbacks(new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {

                        @Override
                        // When otp is automatically entered --> move to username
                        public void onVerificationCompleted(@NonNull PhoneAuthCredential phoneAuthCredential) {
                            signIn(phoneAuthCredential);
                            setInProgress(false);// set progressBar gone

                        }

                        @Override
                        //when something went wrong
                        public void onVerificationFailed(@NonNull FirebaseException e) {
                            AndroidUtils.showToast(getApplicationContext(),"OTP verification failed");
                            setInProgress(false);// set progressBar gone

                        }

                        @Override
                        // this will send the otp to the user
                        public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {
                            super.onCodeSent(s, forceResendingToken);
                            verificationCode = s;
                            resendingToken = forceResendingToken;
                            AndroidUtils.showToast(getApplicationContext(), "OTP sent successfully");
                            setInProgress(false);// set progressBar gone
                        }
                    });
    if (isResend){
        //verifying with resendingToken
        PhoneAuthProvider.verifyPhoneNumber(builder.setForceResendingToken(resendingToken).build());
    }else {
        //verify the phone number
        PhoneAuthProvider.verifyPhoneNumber(builder.build());
    }


}




//set the progressBar/nextBtn to VISIBLE/GONE METHOD
void  setInProgress(boolean inProgress){
    if (inProgress){
        progressBar.setVisibility(View.VISIBLE);
        nextBtn.setVisibility(View.GONE);
    }else{
        progressBar.setVisibility(View.GONE);
        nextBtn.setVisibility(View.VISIBLE);
    }
}



// login with Firebase and go to next activity METHOD
void signIn(PhoneAuthCredential phoneAuthCredential) {
    setInProgress(true);
    mAuth.signInWithCredential(phoneAuthCredential).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
        @Override
        public void onComplete(@NonNull Task<AuthResult> task) {
            if (task.isSuccessful()) {
                setInProgress(false);
                Intent intent = new Intent(LoginOtpActivity.this, LoginUsernameActivity.class);
                intent.putExtra("phone", phoneNumber);
                startActivity(intent);
            } else {
                AndroidUtils.showToast(getApplicationContext(), "OTP verification failed");
            }
        }
    });
}



// Timer for resending OTP METHOD
void startResendTimer(){
    resendOtpTextView.setEnabled(false);
    Timer timer = new Timer();
    timer.scheduleAtFixedRate(new TimerTask() {
        @Override
        public void run() {
            timeoutSeconds--;
            resendOtpTextView.setText("Resend OTP in " + timeoutSeconds+" seconds");
            if (timeoutSeconds<=0){
                timeoutSeconds=30L;
                timer.cancel();
                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        resendOtpTextView.setEnabled(true);
                    }
                });
            }

        }
    },0,1000);
}

tried to check my settings gradle and couldnt fine the problem…

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật