A play_integrity_token was passed, but no matchinig SHA-256 was registered

Hi friends, I am implementing the login in my application with Google but this does not work when I install the application on a real device, it opens me a screen to select the email account but it does nothing. I also implemented the login with Phone number but this also doesn't work, it sends me this error:

"This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [A play_integrity_token was passed, but no matchinig SHA-256 was registered in the Firebase console. Please make sure that this application's packageName/SHA256 pair is registered in the Firebase Console]."

I got the SHA-1 and SHA-256 from the Play Store and included them in the Firebase console, I deleted some I had and put the new ones, but I still get the old ones. In the emulator both options work for me.

Could someone please help me

2