I am getting an Error Message on App Startup Stating Logs like
W/Firebase-Installations: Error when communicating with the Firebase Installations server API.
I encountered the same issue, click on the link provided:
"links": [
{
"description": "Google developers console",
"url": "https://console.developers.google.com"
}
From there on, Go to the 'credentials' menu.
Confirm in your google-services.json file the API key being used.
Go back to the google portal and look for that key under API keys. Once you find it, click to edit and when editing, add your project's package name and SHA-1 certificate key.
Save and wait for 5 mins, the error should be gone.
Late but might be helpful to others.
I tried everthing here, at last I got it working by making sure following steps,
Rule: App's SHA-1 should be registerd in Google Developer Console with the API keys used.
Look for the SHA-1 you are using (debug or release). You can do it by going to android studio > Gradle form side bar > Tasks > android > signingReport. Double click on it to run. Once it runs, you will be able to find out SHA-1 for your variant. (In my case, I was trying to make it run for release variant). Keep that SHA-1 aside we will check for its existance on Google Developers Console.
Now head over to https://console.cloud.google.com/apis/credentials, In your selected project > Credentials, Find API key that is used, Click on it to go into details, Find Restrict usage to your Android apps
, see if the SHA-1 is registed there along with your package name.
If you do not find the same SHA-1 that you had in your project, then you can click on Add an Item
to add the app. Pass package name and SHA-1 and submit.
Try again to connect firebase APIs after 5-10 mins.
To fix this error read this file using CMD or Windows Explorer
PS C:\Users\Any> keytool -keystore C:\Users\Any\.android\debug.keystore -list -v
Enter keystore password:
Use 'KeyStore Explorer' from https://keystore-explorer.org/downloads.html
& paste it here: https://console.developers.google.com/apis/credentials/key/