Couldn't connect to Google API client

后端 未结 7 689
无人共我
无人共我 2020-12-11 16:59

I can\'t fetch last known location. I have enabled Geocoding API and Google Places API for Android in google console. I added api key to ma

7条回答
  •  时光说笑
    2020-12-11 17:34

    I ran into the same issue with utilization of the Google Fit API. With a very similar setup to what you describe, I received the same error message:

    Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}

    The issue ended up being the configuration for communications with the Google Sign-In service. I resolved this issue after finding the Google documentation: Start Integrating Google Sign-In into Your Android App. I used the "Get a Configuration File" section for instructions on retrieving the SHA1 hash for my keystore, then used the "Get a Configuration File" button to initiate the Google Developer Console process to create a JSON file that was placed into the "/app" directory of the Android application.

提交回复
热议问题