Android apikey Not Supported for Google Map - android

I got a fingerprint
73:F9:85:F8:14:56:4A:E7:D1:D4:31:6F:23:AA:4D:38:EB:16:5C:EE
but when i used to generate api Key using this link
http://code.google.com/android/maps-api-signup.html it shows
"The fingerprint you entered is not valid. Please press the Back
button on your browser and enter a valid certificate fingerprint".
If i omit last four Character and use
73:F9:85:F8:14:56:4A:E7:D1:D4:31:6F:23:AA:4D:38
it generate api key that not support to create Google map in android Application

Set Your java Path in Command Prompt And also set debug.keystore path.
C:\Program Files\Java\jdk1.7.0_02\bin >
keytool -v -list -alias androiddebugkey -keystore "C:\Users\UserName\.android\debug.keystore" -storepass android -keypass android
And use MD5 fingerprint .....

Super easy with Eclipse Keytool addon-tool
You can use the android.debug key for debugging or your own key for using it on a device.

Related

Difficulty in Obtaining an API key for Google Maps

I am following the instructions in this tutorial https://web.stanford.edu/class/cs193a/lectures/maps.pdf
I get the command prompt to C:\Users\USERNAME.android (for windows new)
I then type >keytool -list -v -keystore debug.keystore
but when I press Enter I get:
What is going wrong? It seems like I have not set something up quite correctly, because I have followed the instructions which didnt seem difficult.
1. Open Terminal In Android Studio you are running.
2. Enter: keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
3. Copy SHA1 key.
4. Go To Google developer console and select Android API Key.
5. Copy SHA1 key to android Fingerprint and Write Package in Package Name block.
6. Generate API key.
7. USE API key

Invalid fingerprint for generating Google Map key for android application

I have successfully generated the fingerprint Certificate for google map key by using these command
keytool -list -alias androiddebugkey -keystore "C:\Users\pc\.android
\debug.keystore" -storepass android -keypass android
and i got this result
androiddebugkey, Aug 25, 2012, PrivateKeyEntry,
Certificate fingerprint (SHA1): 68:1F:B8:80:C0:B9:96:D1:6E:95:86:69:CD:DB:0E:28:DC:9E:89:51
when i try to register Certificate fingerprint on this site https://developers.google.com/android/maps-api-signup
page replied me The fingerprint you entered is not valid. Please press the Back button on your browser and enter a valid certificate fingerprint
where is problem please help.
I find the solution of my problem just changed the command by this
keytool -list -v -alias androiddebugkey -keystore C:\Users\<user>\.android\debug.keystore -storepass android -keypass android
If your having issues finding the debug key path or dont want to use the adb you can get the fingerprint in eclipse:
go to window-->preferences and find the android section. Select the build sub-setting.
for the production fingerprint when your exporting your signed application using ADT right before you click finish the hash will be there. just copy it.

Map key generate issue on android

i get knowledge from http://mobiforge.com/developing/story/using-google-maps-android.
i get fingerprint key from my machine.
I use below command :
keytool.exe -list -alias androiddebugkey -keystore "D:\Android\Key Store\debug.keystore" -storepass android -keypass android
Certificate fingerprint (SHA1): FB:8E:56:83:06:C6:AA:39:56:A8:04:DD:0F:ED:3E:71:BD:8A:3A:4A
But when i put on google map api, it throws "The fingerprint you entered is not valid. Please press the Back button on your browser and enter a valid certificate fingerprint. "
If i give "FB:8E:56:83:06:C6:AA:39:56:A8:04:DD:0F:ED:3E:71" only google generate Map key. But its not woking on my device.
pls help me wtats the problem and how to generate map key.
With Windows 7 installed, keytool outputs by defaultSHA1 fingerprint, not MD5. Adding -v option allows to see MD5 as well.
list -alias androiddebugkey
keystore "C:\android\debug.keystore"
storepass android -keypass android
-v for verbose..
All the best

How to get Map api key? [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Google Maps does not display any tiles, works fine in developer device
I have gone through whole procedure of getting map api key .But when I enter my Md5 fingerprint it shows invalid .
Could somebody help me.
Is there any other way to get it work?
i think this is right a way to get key ::
To get certificate fingerprint (MD5) follow the simple steps below:
You need to get the keystore file for getting the certificate fingerprint (MD5).
Your keystore file can be found at the following path
"C:\Documents and Settings\\Local Settings\Application Data\Android"
(Or)
"C:\Documents and Settings\.android"
Keystore file name is "debug.keystore" file.
Copy the "debug.keystore" file to some other folder (ex: - "D:\Androidkeystore\") (its user friendly to use).
Open command Prompt and go to the Java installed directory. ("C:\Program Files\Java\\bin")
Then type the below line (given in box) and press enter.
keytool.exe -list -alias androiddebugkey -keystore "D:\AndroidKeystore\debug.keystore" -storepass android -keypass android
Here the MD5 certificate fingerprint is "64:88:A2:FC:AA:9F:B1:B0:CA:E4:D0:24:A8:1E:77:FB"
this is working actually........but im getting small error here
this is my path-C:\ANDROID\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore"C:\ANDROID\debugkey\debug.keystore"-storepass android -keypass android
keytool error: java.lang.RuntimeException: Usage error, android is not a legal c
ommand
and finally i have solve from here ::
For more ..
as you got fingerprints copy it and past in Sign Up page. you got a key successfully
if your are using windows do this
C:\>keytool -list -alias androiddebugkey -keystore .android\debug.keystore -storepass android -keypass android
in linux
keytool -list -alias androiddebugkey -keystore /home/.android/debug.keystore -storepass android -keypass android
C:\Program Files\Java\jre6\bin ---> Here key tool is available ------
C:\Users\HB.android\debug.keystore ---> keystore path
// This may be different My UserName is HB so replace with your's
Note:without keytool u cannot get the api key and cannot execute the command
The command goes here ---->
C:\Program Files\Java\jre6\bin> keytool -list -keystore C:\Users\HB.android\debug.keystore
FF:82:84:27:33:43:C1:58:DC:4D:AC:F0:3C:A0:BF:7A
The above is ur MD5 CERTFICATE
http://code.google.com/android/maps-api-signup.html for Registration
Click the above link login and get your api key. Have fun... Happy Mapping
P.S: Dont forgot to extend MapActivity in which you are using the map layout
http://code.google.com/android/add-ons/google-apis/mapkey.html
Click the above link for help

To Display the Google map on the emmulator

Now I am working on the Google maps API. I am not able to display the map on the emulator as well as the device......... how can i dis play the map.
I tried like this but i failed...
I searched for the debug.keystore in c:/ i found it.
I got Keytool.exe from the "C:\Program Files\Java\<JDK_version_number>\bin".
Opened the commend prompt and went to the above folder.
After that i copied this
"keytool.exe -list -alias androiddebugkey -keystore "C:\android\debug.keystore" -storepass android -keypass android"
and pressed enter then I got the Google api key **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
I pasted the key in this site http://code.google.com/android/maps-api-signup.html.
but the map is not generated it is saying that
fingerprint you entered is not valid. Please press the Back button on your browser and enter a valid certificate fingerprint.
What i need to do now to get the Map API key.
Okay, I was able to solve the problem in my case. I've got Java 7 on my machine and when I followed all the instructions as they are, I've got a SHA1 fingerprint, not MD5. I tried to use it to get the key and received exactly the error message from which this thread has started.
If you are having the same problem, just add the -v option (verbose output) after -list. keytool will then give you the MD5 fingerprint as well - use it.
keytool -list -v -alias androiddebugkey -keystore C:\Users\<user>\.android\debug.keystore -storepass android -keypass android
I will try to let Android folks know that they need to update the page with instructions.
for JDK 1.7 you get SHA1 fingerprint by default. But for generating Google Map API key you need fingerprint of MD5.
For more details navigate through the below link.
How can I get the MD5 fingerprint from Java's keytool, not only SHA-1?
Ok, so what you're supposed to enter in the link you posted is the MD5 fingerprint of your android SDK debug certificate. To get this you navigate here
Windows Vista: C:\Users\.android\debug.keystore
Windows XP: C:\Documents and Settings\.android\debug.keystore
and then enter
keytool.exe -list -alias androiddebugkey -keystore "C:\android\debug.keystore" -storepass android -keypass android
What you're currently doing is navigating to your Java folder and trying to find the fingerprint for your android SDK debug certificate there. It isn't located in that folder and hence you end up with a blank fingerprint ::*:::*:::*:::*:::*:*
You need to find the .android folder.
have you checked the path you use? I mean "C:\android\debug.keystore", Does the file there?
have you compared your fingerprint (the result of keytool.exe calling) with the example on http://code.google.com/android/maps-api-signup.html page? they must be very similar, maybe you just copied not the whole fingerprint from the cmd
Here is the simplest way to generate MD5 signature.
Find the folder .android which contains debug,keystore(usually it is located in c:\Documents and Settings\"User Name".android
Oepn command prompt and go to the keytool folder that you mentioned.
Now use following easy command to key MD5 fingerprint.
keytool -list -keystore "c:\Documents and Settings\"User Name".android\debug.keystore"
press Enter. It will ask you for password again press enter.
Enter the generated key in Google API registration page.
Use this key in your MapView.
I too had the same problem but got fixed...the problem might be you.. might have not given default location for emulator..i will get u the proper way to get the map in emulator...
1)to generate the hash key
http://code.google.com/android/add-ons/google-apis/mapkey.html
2)to set the default location
http://www.vogella.de/articles/AndroidLocationAPI/article.html#device_installation
hope it works fine..

Categories

Resources