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
My app uses Google Drive API, and I faced the same issue "Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null} on some devices. Advice to go through Start Integrating Google Sign-In into Your Android App helped but left me really confused:
How google-services.json influences on resulting apk? Should I do the same for release certificate and so on?...
Eventually I found what is behind the scene and another answer reveals that google-services.json is just optional.
So these steps helped me:
Also don't forget to check that corresponding API is enabled in your project (see step #1)
During generating google-services.json via Start Integrating Google Sign-In into Your Android App the same 'OAuth 2.0 client ID' is created implicitly.