1

我正在尝试获取谷歌地图的 api 密钥,但我尝试了这一行,但出现了这个错误

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
4

1 回答 1

2

我认为您需要添加

-list -alias

在命令行中的“keytool”和“androiddebugkey”之间 - 即:

keytool -list -alias androiddebugkey -keystore C:\Users\KHALED\.android\debug.keystore -storepass android -keypass android
于 2012-07-02T21:25:42.067 回答