zhy
zhy

Reputation: 11

keytool error : java.lang.RuntimeException:error,–alias is not a legal command

when i try to get the md5 of my computer by the command "keytool -list –alias androiddebugkey –keystore d:\debug.keystore" , there comes with the error "keytool error : java.lang.RuntimeException:error,–alias is not a legal command"

Upvotes: 0

Views: 3527

Answers (2)

C. Leung
C. Leung

Reputation: 6318

did you copy and paste the command? try to change –alias to -alias (note: - not )

Upvotes: 0

Satheesh
Satheesh

Reputation: 656

If u r using eclipse, try using "Keytoool for Eclipse" . Hope it reduces the burden of getting MD5 key. FYI you need to use "keytool -v -list" instead of "keytool -list" if you need all the type keys(MD5 , SHA etc.,).

Upvotes: 2

Related Questions