问题
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"
回答1:
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.,).
回答2:
did you copy and paste the command? try to change –alias
to -alias
(note: -
not –
)
来源:https://stackoverflow.com/questions/10716917/keytool-error-java-lang-runtimeexceptionerror-alias-is-not-a-legal-command