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