Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable "Google Maps Android API v2" in developers console

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?

like image 204
SR1991 Avatar asked Feb 12 '16 20:02

SR1991


2 Answers

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

like image 140
Edwin Avatar answered Oct 10 '22 05:10

Edwin


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

like image 40
M_droid Avatar answered Oct 10 '22 04:10

M_droid