Reputation: 217
I am trying to get the api key for google maps but I tried this line and i got this error
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
Upvotes: 1
Views: 944
Reputation: 5799
I think you need to add
-list -alias
between "keytool" and "androiddebugkey" in your command line - i.e.:
keytool -list -alias androiddebugkey -keystore C:\Users\KHALED\.android\debug.keystore -storepass android -keypass android
Upvotes: 2