Am using ubuntu .am developing apps with google map.for that i registering for map apikey.I follwed the instruction in this following Link link text
from this instruction i got MD5 Fingerprint of Your Signing Certificate,also i have keystore ,But i cant able get MD5 Fingerprint of the SDK Debug Certificate, for this I followed the commend
keytool -list -alias androiddebugkey \
-keystore .keystore \
-storepass android -keypass android.
I specified the path_to_debug_keystore location according to my application location. But wen i execute that commend
I get the "bash: my-release-key.keystore: Permission denied."
I dont know which commend will i use to get this MD5 Fingerprint of the SDK Debug Certificate.can any one give me the solution for this.
Thanks in advance,
regards,
Lakshmanan.
Find out where your debug.keystore is located - where the avd manager is:
I realize you are using Linux, but
in WindowsXP it's under "C:\Documents and Settings\[user]\.android\debug.keystore"
in Windows7: C:\Users\[user]\.android\debug.keystore
I am not familiar with ubuntu - sorry. But, the instructions should translate respectively.
So in the command prompt adapt this generic path reference to your specific info:
~path\keytool -list -keystore ~path.android\debug.keystore
Do not enter a password as there is none.
Look for the MD5 fingerprint
Related
I tried to get my SHA-1 key by using the terminal but I don't know what problem is there, can anyone help me with this? I know how to get sha-1 key in android studio by signing report, but I want to generate in terminal.
Here is what I got when I run the command, I tried this answer but got nothing: how to get sha1 of android app in Vs code
above is my cmd. It is saying that it is an illegal option.
I have my Java bin directory here C:\Program Files\Java\jdk-14.0.2\bin and debug.keystore here: C:\Users\91819\.android
Put a space between "C:\Users\91819\.android\debug.keystore" and -alias
open the Project folder in VS code
Open the Terminal
Enter the following cmd and enter
keytool -list -v -keystore "C:\Users\yourusernamehere\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Replace yourusernamehere to your windows user name
you will get the SHA1 and other details.
When obtaining my md5 fingerprint for an Android app I have encountered problems when entering the keystore command on both the cmd and jdk bin prompt:
keystore is an invalid command
In the cmd I got this error,which I researched and found that it means my keystore path is incorrect.So I double checked my path and it was correct and found a tutorial explaining to enter the same command through the jdk bin cmd prompt:
Access denied
key store address is:
C:\Users\Brian\.android\debug.keystore
The command I'm using is as follows:
keytool -list -alias androiddebugkey -keystore C:\Users\Brian\.android\debug.keystore -storepass android -keypass android
What are you trying to obtain.
Maby this answer can help
https://stackoverflow.com/a/14042038/928591
I see what your problem is, you are trying to obtain a debug key but you specify a path.
but try to just copy paste this commnad without modifying it.
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
it worked for me to obtain my debug key for a facebook app.
I could be wrong about this but I think this should work
Edit
Did some digging, the keytool comes with the java jdk. like commonsware answerd here
so do you have the JDK or the SDK installed is my next question.
Edit (another)
to answer you question in the comment take a look here.
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
finale update
this is the last update for this particular answer.
Browse to the JDK folder and execute the command from that directory.
kind regards
No map shows up but a grid. So I looked up some sample fixes and came to this
help needed to publish android app in market
however, after running the cmds as suggested, I end up with a SHA1 certificate fingerprint. But when I go to sign up for a google API key, I see I need an MD5 certificate fingerprint instead. How do I tackle this please?
And here is the solution to your problem
Open Command Prompt and navigate to C:\Program Files\Java\jre6\bin(might be different in your case).
As you are following this solution that means you have keystore with you.If yes move to step 3. else create a new keystore like mentioned in this.
Type the following command keytool.exe -v -list -keystore " <path_of_keystore_youhave_created_in_step_2>" it will ask for password use the same password you have used while creating keystore and you will get SHA1 MD5 and many information you have provided while creating keystore.
First find the location of debug.keystore (In eclipse you can find location of debug.keystore at Window->Preference->Android->Build).Then navigate the path of keytool.exe in command prompt. keytool.exe is located inside Java –> JDK – > bin folder inside program files.
For window write the following code in command prompt C:\Program Files\Java\jdk1.6.0_25\bin> keytool -list –alias androiddebugkey -keystore <path_of_debug.keystore> -storepass android -keypass android
Here <path_of_debug.keystore> is path of debug.keystore. For my case it is C:\Users\virus.android.
Copy the MD5 key(eg:- BE:05:C8:F2:42:7A:97:37:78:EE:BD:4A:31:7D:A6:69) and goto on following link to find google map api key http://code.google.com/android/maps-api-signup.html
I want to generate MD5 Fingerprint for using GoogleMap in Android. But I am using Macbook 10.5.8 and Eclipse Indigo.
Any suggestion will be appreciate...
Check out the process to generate MD5 fingerprint.
Using Google Maps in Android
Answer for my question is we can create MD5 fingerprint for MAC in a usual way i.e. by using the following command
$ keytool -list -alias androiddebugkey -keystore .keystore \
-storepass android -keypass android
One important thing about MAC is .android folder is hidden.To make that folder visible we have use command Command+Shift+G.
Problem with me is I have installed fresh eclipse and I had not run a single project so the debug.keystore file was not generated.So it is giving me an error of file not found exception.
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..