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 there was conflict of APIs. I have added google-service.json file which also had API key and I generated new key for Maps. So place picker was closing immediately. Solution :
Use single API key which is in google-service.json file
Enable "Places SDK for Android" feature for your Google Cloud Platform project (with same name as in Firebase project , don't use different project. You will find same name project as you are using in Firebase)
Check if you have placed following code in Application tag only