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

痞子三分冷 提交于 2019-12-13 07:16:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!