android-places-demos
android-places-demos copied to clipboard
Playstore shows "Leaked GCP API Keys" error
Google play store complains error when I upload package. Following initialising code has a problem.
if (!Places.isInitialized()) {
Places.initialize(getApplicationContext(), BuildConfig.MAPS_API_KEY);
}
@kosuel Thank you for opening this issue. 🙏 Please check out these other resources that might be applicable:
- Support Console - If you have a support contract.
- Discord - chat with other developers
-
StackOverflow - use the
google-mapstag - Google Maps Platform issue trackers
This is an automated message, feel free to ignore.
Hi @kosuel.
I am not sure if you have resolved this by now, but your API key should be inside a properties file, and not within the code itself. Can you check out if this was the case?
I am closing the issue, but feel free to open it if you are still experiencing this.