0

I am following this tutorial here:

http://www.vogella.com/articles/AndroidGoogleMaps/article.html

On my mac and am not sure how to accomplish this step to get my sha-1:

enter image description here

Update:

I realized I already have a key cause I build and sign my project. Trying to get the SHA-1 is proving difficult with the terminal on my mac:

Mikes-MacBook-Air:beerPortfolio Mike$ keytool -list -v -alias androiddebugkey \ -keystore bp_key.keystore \ -storepass android -keypass android keytool error: java.lang.RuntimeException: Usage error, -keystore is not a legal command java.lang.RuntimeException: Usage error, -keystore is not a legal command at sun.security.tools.KeyTool.parseArgs(KeyTool.java:375) at sun.security.tools.KeyTool.run(KeyTool.java:171) at sun.security.tools.KeyTool.main(KeyTool.java:166) Mikes-MacBook-Air:beerPortfolio Mike$ 
4
  • refer this stackoverflow.com/questions/11850556/… stackoverflow.com/questions/7292832/… Commented Aug 24, 2013 at 13:35
  • Tried the command line code and I am getting an error, which is now noted above Commented Aug 24, 2013 at 13:44
  • do you have command line in Mac i didn't use Mac. Commented Aug 24, 2013 at 13:48
  • Try to remove the backslashes and the space after them from the command, that is, execute this (all in one line): keytool -list -v -alias androiddebugkey -keystore bp_key.keystore -storepass android -keypass android Commented Aug 24, 2013 at 14:26

1 Answer 1

3
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 

The above command worked for me. You can change your keystore path if it is in another location.

Here is the Link

Sign up to request clarification or add additional context in comments.

1 Comment

thanks, now I am just stuck with the xml part lol: stackoverflow.com/questions/18419695/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.