Google maps error when trying to get my API Key for android

帅比萌擦擦* 提交于 2020-01-07 04:14:26

问题


keytool -list -alias androiddebugkey -keystore "C:\Users\hp\.android\debug.keystore" -storepass android -keypass android       

thats what i type into my command, on windows 7 and i keep getting the reply "keytool is not recognised as an internal or external command, operable program or batch file." =S not sure weather to install andriod again or if ive miss typed something


回答1:


The keytool utility is not part of the Android SDK, but the Java JDK.

It appears you may not have your JDK bin/ directory in your PATH. While in a command-prompt, try browsing to the directory C:\Program Files (x86)\Java\jdk#\bin (# is your jdk version installed) then running the command.

Note: If you are using jdk 1.7.0 you may need to add the -v option to keytool as it doesn't give MD5 by default, only SHA.



来源:https://stackoverflow.com/questions/8639874/google-maps-error-when-trying-to-get-my-api-key-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!