How to enable "Google Maps Android API v2" in the developer console

I developed an application to display my location on a Google map. When I run the program, it shows an error below.

enter image description here

But I could not find a way to enable the "Google Maps Android API v2". I also found a question. I am not sure how to follow this step.

enter image description here

Could you help me solve this problem?

+7
source share
3 answers

In the developer console, go to the API Manager

First, you will need some API keys.

  • Go to credentials.
  • Select Create Credentials and select API Key and Android Key.
  • On the next screen, enter any name for your credentials.
  • In the imprint of the package name + Add, write the name of the package (com.sourcey.materialwh independently) and the imprint that appears in your journal (E4: ...: B9).

API Manager - Credentials

Now from the API Manager go to Overview

  • Find the "Google Maps Android API" and enable it.

API Manager - Overview

Perhaps you received a debug keystore when installing the Android SDK, with it you can 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

+5
source

I didnโ€™t succeed anymore, but this solved my problem:

  1. Open the console (console.developers.google.com)
  2. Select credentials on the left
  3. Click on your API key
  4. Click API Restrictions in the General Restrictions section.
  5. Click on Select API and
  6. "Maps SDK for Android" to the list of API restrictions
  7. Save

enter image description here

0
source

It will take> 5 minutes after enabling the Google Map API.

0
source

Source: https://habr.com/ru/post/1242909/


All Articles