This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console
When you updated Android Studio, the debug key which is used to sign debug apps might have changed. Just add the new SHA-1 checksum of your debug key in the firebase console.
Easiest way would be to connect/sync to firebase from
Tools>Firebase>Authentication>Connect>Sync
If you want to do it manually or for release keystore, first generate SHA-1 checksum using following command:
keytool -list -v -keystore KEYSTORE_PATH -alias ALIAS_NAME
Then copy the SHA-1 checksum and go to:
Firebase Console > Your project > Settings of the app > Add Fingerprint
For more info, read this guide: Authenticating Your Client | Google APIs for Android
Please verify that the correct package name and SHA-1 are configured in the Firebase Console
I think you have not added SHA fingerprints for your release signing key.
If you have selected something like this "Let google manage and protect your app signing key (recommended)", then you should go in Play Console, and then choose your app, go to App Signing under Setup (New version of Play Console).
Your fingerprint will be available below "App Signing Key Certificate", copy it, then go to Firebase Console, inside your project, go in project settings, and then finally add your copied fingerprint. then download latest Google-services.json file and add it to your project.
If you have not enabled Google signing, you have to find your fingerprint from the local signed key (which you used) using keytool and then add it.
Read this: https://developers.google.com/android/guides/client-auth
https://support.google.com/firebase/answer/9137403?hl=en
This app is not authorized to use Firebase Authentication in Emulator
In order to prevent abuse the firebase phone authentication wont work in emulator.
But if you want it for testing purpose then you should add use some
testing phone number in firebase console that will work in emulator.
Go to your firebase console -> Authentication -> SIGN-IN Method -> Phone and check the "Phone numbers for testing (optional)" field.
Related Topics
Why Must Wait() Always Be in Synchronized Block
How to Validate an Xml File Against an Xsd File
Finish All Previous Activities
Differencebetween List and Arraylist
Android JSONobject - How to Loop Through a Flat JSON Object to Get Each Key and Value
Tool for Creating a Java Daemon Service on Linux
Execute External Program Through Terminal in Java
Hadoop Mapper Is Failing Because of "Container Killed by the Applicationmaster"
How Does Linux Recognize a File as a Certain File Type, and How to Programmatically Change It
Connection Pooling Options With Jdbc: Dbcp VS C3P0
What Is This Date Format? 2011-08-12T20:17:46.384Z
Limit Decimal Places in Android Edittext
How Does Activity.Finish() Work in Android