This IP, site or mobile application is not authorized to use this API key - Android

Mitja Rogl picture Mitja Rogl · May 29, 2014 · Viewed 24.2k times · Source

I have a problem with connection with Google maps API V2 and Android. I' ve enabled services:

  • Google Maps Android API v2
  • Places API

Also I've added sha1 fingerprint.

enter image description here

But I still get this message: This IP, site or mobile application is not authorized to use this API key

I'm calling service from Android. Do you know where might be the problem, cause I don't know where to search.

Answer

Illegal Argument picture Illegal Argument · May 29, 2014

You must be creating a browser key instead of an android key. I faced similar problem when I accidentely created an android key for Google Cloud Messaging instead of a server key. Please check which key is required for your purpose. For google maps v2 you need android key and for google places api you need a server key(searched google but not so sure on this one never used it). So basically you need two keys.

Update: You need server key for places api.