我试图在我们的应用程序中生成用于集成Facebook的Keyhash,但是当我通过cmd提示生成keyhash时,它无法生成.
C:\Users\DON\.android>keytool -exportcert -alias androiddebugkey -keystore ~/.an droid/debug.keystore | openssl sha1 -binary | openssl base64
‘keytool’ is not recognized as an internal or external command,
operable program or batch file.
我使用的另一个命令是:
C:\Program Files\Java\jdk1.6.0_20\bin>keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
‘openssl’ is not recognized as an internal or external command,
operable program or batch file.
问题是什么?
解决方法
使用此命令首先下载此文件
http://code.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip.然后解压缩文件并运行以下命令:
C:\Program Files\Java\jdk1.6.0_20\bin>keytool -export -alias myAlias -keystore C:\Users\DON\.android\myKeyStore | C:\openssl\bin\openssl sha1 -binary | C:\openssl\bin\openssl enc -a -xtIm30l*********=