2012-07-02 6 views
1

내가 구글 맵 API 키를 얻기 위해 노력하고 있어요을 operatioan하지만 난이 줄을 시도하고 난구글 API 키 Ilegal는

C:\Program Files\Java\jdk1.7.0\bin>keytool androiddebugkey -keystore C:\Users\KHALED\.android -storepass android -keypass android 
Illegal option: androiddebugkey 
Key and Certificate Management Tool 
Commands: 
-certreq   Generates a certificate request 
-changealias  Changes an entry's alias 
-delete    Deletes an entry 
-exportcert   Exports certificate 
-genkeypair   Generates a key pair 
-genseckey   Generates a secret key 
-gencert   Generates certificate from a certificate request 
-importcert   Imports a certificate or a certificate chain 
-importkeystore  Imports one or all entries from another keystore 
-keypasswd   Changes the key password of an entry 
-list    Lists entries in a keystore 
-printcert   Prints the content of a certificate 
-printcertreq  Prints the content of a certificate request 
-printcrl   Prints the content of a CRL file 
-storepasswd  Changes the store password of a keystore 
Use "keytool -command_name -help" for usage of command_name 

답변

2

난 당신이 사이

-list -alias 

를 추가 할 필요가 있다고 생각이 오류가 발생했습니다 "keytool"및 "androiddebugkey"명령 줄에서 - 즉 :

keytool -list -alias androiddebugkey -keystore C:\Users\KHALED\.android\debug.keystore -storepass android -keypass android 
+0

이 오류 keytool 오류가 발생합니다. java.lang.Exception : Keystore file does not ex ist : C : \ Users \ KHALE D \ .android –

+0

거기에 debug.keystore라는 파일이 있는지 확인하려면 "C : \ Users \ KHALED \ .android"라는 디렉토리가 있는지 확인하십시오. 위 명령에서 사소한 오류가 있었지만 명령 줄을 사용했지만 debug.keystore 파일을 지정하지 않았다는 사실을 놓쳤습니다. 이 대답에서 명령을 편집 했으므로 debug.keystore 파일이 있으면 위의 명령을 명령 줄에 붙여 넣을 수 있어야합니다. – HexAndBugs

+0

고마워요. –