Android Error when communicating with the Firebase Installations server API

后端 未结 9 1576
死守一世寂寞
死守一世寂寞 2020-12-17 15:44

I am getting an Error Message on App Startup Stating Logs like

W/Firebase-Installations: Error when communicating with the Firebase Installations server API.         


        
9条回答
  •  甜味超标
    2020-12-17 16:42

    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.

    1. 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.

    2. 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.

提交回复
热议问题