Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API for Android, getting SHA1 cert instead of MD5

When I try to get the MD5 fingerprint using keytool, I get a SHA1 fingerprint instead and the Google Maps doesn't recognize it. How do I get the MD5 fingerprint?

like image 231
Brahadeesh Avatar asked Aug 23 '11 18:08

Brahadeesh


People also ask

Which of the two following certificate fingerprints is used to generate the Google Maps API?

You will use the SHA-1 fingerprint (listed after SHA1) later in this guide. After you have retrieved the SHA-1 fingerprint of the signing keystore, it is necessary to create a new project in the Google APIs console (or add the Google Maps Android API v2 service to an existing project).

Is Google Maps API no longer free?

You won't be charged until your usage exceeds $200 in a month. Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API or SDKs is not applied against your $200 monthly credit).

Can you use Google Maps API without credit card?

Yes you need to setup a billing account, there is no way around it these days. As long as you keep under the free tier it doesn't really matter.


Video Answer


2 Answers

Use JDK version 1.6 instead of 1.7 because 1.7 generates the fingerprint with SHA1 by default. or you can use (-v) option of the keytool to give you all supported algorithms output and you will find the MD5 in it. for examble : keytool -v -list -keystore [your keystore path] and then enter the password which is [android] by default (you can get the keystore path from Eclipse window>Prefs>Android>build).

Sincerely, DigitalFox

like image 52
DigitalFox Avatar answered Sep 22 '22 14:09

DigitalFox


C:\Program Files\Java\jdk1.7.0_04\bin>keytool.exe -V -list -alias androiddebugkey -keystore "C:\Documents and Settings\IBM\.android\debug.keystore" -storepass android -keypass android 

Consider your jdk-bin path in the first path place and your home user directory in the second path. For windows 7 it is like "C:\Users\username.android\debug.keystore"

Use the above command you will get all the keys.

for more details go through this androidgoogle-maps-api-key-signup-md5-certification-key

like image 45
Rahul Baradia Avatar answered Sep 18 '22 14:09

Rahul Baradia