Question

I am setting up a google maps activity and I am trying to get my API key. However in my cmd I get the error that keytool is not recognized as an internal or external command....ect.... I tried using the solution posted in a similar question but it didn't work for me.

My Default dubug keystore

C:\Users\Sam\.android\debug.keystore
Was it helpful?

Solution

It looks like your %PATH% - OS environment variable is not configured properly.

You can either:

Call keytool by specifying full path to your <Java_Home>/bin/keytool.exe executable file.
For me, the path looks like this:
"c:\Program Files (x86)\Java\jdk1.6.0_20\bin\keytool.exe"

Or,

Correct your %Path% variable; by appending %JAVA_HOME%\bin to it.

OTHER TIPS

"c:\Program Files(x86)\Java\jdk1.7.0\bin\keytool.exe" -list -v -alias androiddebugkey -keystore "C:\Users\EIS\.android\debug.keystore" -storepass android -keypass android

Then hit the "Enter" key and your MD5 and SHA1 will show.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top