I'm having trouble getting SHA1 certificate with keytool

江枫思渺然 提交于 2019-11-30 08:27:50

I found that the problem comes from latest version of Keytool in JDK8.151 and JDK9. By default keytool use system default language and that seems to do not properly work anymore on some languages (in my case French).

It was enough to force output in english by using the parameter -J-Duser.language=en

So try using this command line instead:

keytool -J-Duser.language=en -exportcert -alias androiddebugkey -keystore $HOME/.android/debug.keystore -list -v -storepass android

See also my answer here: https://stackoverflow.com/a/47181882/5292951

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