Your app contains exposed Google Cloud Platform (GCP) API keys, the Classes:
MainActivity->onCreate
Please refer to the following article on how to fix the issue: https://support.google.com/faqs/answer/9287711
I am getting this alert from my google play store console after implementing new google places API. I have added restrictions to my API key with my SHA key as well. I have used same line from demo project.
My code
String apiKey = getResources().getString(R.string.google_api_key);
if (!Places.isInitialized())
Places.initialize(getApplicationContext(), apiKey);
these lines are used in Activity which is causing this issue. I need to know how to fix this issue. Because Google new places API is also my requirement i cannot avoid using these lines in my code.