15

I have developed an application to display my location on google map. When I run the program, its showing the below error.

enter image description here

But I couldn't find a way to enable "Google Maps Android API v2". I have found a question on the same. I am not quiet clear on how to follow that step.

enter image description here

Could you please help me solve this?

Zoe
  • 27,060
  • 21
  • 118
  • 148
sr1991
  • 253
  • 2
  • 4
  • 13

3 Answers3

9

In the developer console go to API Manager

Fist you will need some some API Keys.

  • Go to Credentials.
  • Select Create credentials and choose "API key" and "Android key".
  • In the next screen put any name for your credential.
  • In the +Add package name fingerprint write your package name (com.sourcey.materialwhatever) and the fingerprint that appears in your log (E4:...:B9).

API Manager - Credentials

Now from the API Manager go to Overview

  • Look for "Google Maps Android API" and enable it.

API Manager - Overview

You probably got a debug keystore when you installed android sdk, with it you could check your fingerprint using the command: ($HOME/.android/debug.keystore is the default location)

keytool -list -v -keystore .android/debug.keystore

http://developer.android.com/intl/es/tools/publishing/app-signing.html

Edwin
  • 836
  • 7
  • 17
  • Hi Edwin... I have followed all these steps while creating my project. I cross checked now and the API is enabled! Still I am getting the error. – sr1991 Feb 13 '16 at 00:38
  • Are you still getting the same error or a new one? the apk was generated by the same computer you submited the fingerprint? – Edwin Feb 13 '16 at 00:50
  • Yes, I am still getting the same error and the its the same computer. – sr1991 Feb 13 '16 at 01:09
  • in the manifest is the API Key correct? i think it would have show a different error but maybe no – Edwin Feb 13 '16 at 01:28
6

Nothing else worked for me, but this solved my problem:

  1. Open your console (console.developers.google.com)
  2. Select Credentials from left
  3. Click on your API key
  4. Click on API Restrictions under Key Restrictions
  5. Click on Select API and
  6. "Maps SDK for Android" to your API Restrictions list
  7. "Save"

enter image description here

M_droid
  • 2,447
  • 2
  • 25
  • 35
0

It takes > 5 minutes after enabling the google map API.

Mike Yang
  • 2,581
  • 3
  • 24
  • 27