I am developing an android application as part of a project, and am using Google places API to display places of interest based on location. I am using the PlacePicker Inent
In my case when I changed current API key with the one which is in google-service.json, it resolved the problem.
google-service.json
In google-services.json:
"api_key": [ { "current_key": "PASTE THIS API KEY TO THE MANIFEST" } ]