Skip to content Skip to sidebar Skip to footer

Places_api_invalid_app Error From Android Play Places

I am trying Google Place Autocomplete Example from https://github.com/googlesamples/android-play-places. I have put the correct API key at the correct place. I knew it because when

Solution 1:

It's because the package that you put on the credentials section on the Developers Console is different to the project you are building.

  1. Open https://console.developers.google.com
  2. Go to APIs & auth menu on the left side, and go to Credentials
  3. You can add new Android API and put the package you are building, or edit any existing and add another package name and fingerprint (SHA1).

Solution 2:

I was getting the 'PLACES_API_INVALID_APP' even after posting my release SHA1. After trying everything I found out my release app was not even signed with the SHA1 I was getting from the keystore. So I did this:

1.Go to google play console

2.Release Management > App Signing > App signing certificate

3.Copy the SHA1 of App signing certificate and paste in google api console's credential page

Now you are good to go! Sadly it is not documented anywhere currently.

Solution 3:

Follow my steps:

1> Creating one new projects on Google Developer Console

2> API Manager > Credentials > New Credentials > API Key > Android Key > Press Create Button & Generate API KEY

Here, Creating key without applying package of application & SHA fingerprint is working in any application

MUST REMEMBER:

Enable Google Places API for Android

Solution 4:

In my case SHA-1 certificate fingerprint was for debug build only, I added release SHA-1 key also. Now it's working.

Make sure you use the exact packageName and valid SHA-1 key for debug as well as release app

Solution 5:

Status{statusCode=PLACES_API_INVALID_APP, resolution=null}

it means your api key invalid so create API key with your Package name and SHA Fingerprint

STEPS fot Creating API KEY

1.Get information about your app's certificate (SHA fingerprient).

2.Register a project in the Google Developers Console

3.Add the Google Places API as a service for the project, and create an API key.

4.Add the key to your app manifest.

Post a Comment for "Places_api_invalid_app Error From Android Play Places"