2012-03-29 34 views
0

所以我想在Android中使用Eclipse中的Google API。 我按照指令herehere,但我有以下問題,之後我像這樣輸入:在Windows 7中獲取Google API的密鑰

C:\Users\User>$ keytool -list -v -alias androiddebugkey -keystore C:\Users\User\ 
.android\debug.keystore -storepass android -keypass android 

cmd這樣說:

'$' is not recognized as an internal or external command, operable program or batch file.

於是,我就刪除$cmd說:

'keytool' is not recognized as an internal or external command, operable program or batch file.

我可以在這個問題上得到一些幫助嗎?

+1

你的打字。這可能是keytool.exe,並且不應該有'$'。 '$'只是表示它是一個shell命令。 – tobier 2012-03-29 14:31:32

+0

謝謝先生:D 是的,我也試圖刪除「$」和cmd說「keytool」不存在:D – 2012-03-29 14:42:26

回答

2

找到密鑰工具可執行文件(見I can’t find the Android keytool),然後鍵入:在Linux shell命令

keytool.exe -list -v -alias androiddebugkey -keystore C:\Users\User\.android\debug.keystore -storepass android -keypass android 
1

您必須從keytool所在的目錄中執行,或將目錄添加到路徑中。谷歌搜索應該可以幫助您找出如何使用cmd。

+0

感謝:D 你能幫助更多嗎?我已經做了一些研究,但幾乎所有的文件或問題答案是我發佈.... – 2012-03-29 14:40:38