android-places-demos icon indicating copy to clipboard operation
android-places-demos copied to clipboard

Playstore shows "Leaked GCP API Keys" error

Open kosuel opened this issue 3 years ago • 1 comments

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);
    }
Screen Shot 2022-02-09 at 11 31 03 am

kosuel avatar Feb 09 '22 01:02 kosuel

@kosuel Thank you for opening this issue. 🙏 Please check out these other resources that might be applicable:

This is an automated message, feel free to ignore.

jpoehnelt avatar Feb 09 '22 01:02 jpoehnelt

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.

kikoso avatar Nov 28 '22 14:11 kikoso