我按照步骤创建了哈希键。
-
已下载 openssl
-
解压缩并复制了 bin 文件夹中的所有文件,包括 openssl.exe
-
已将从 Openssl 的 bin 文件夹中复制的所有文件粘贴到 Jdk bin 文件夹中。
-
然后我在openssl上使用了以下命令.exe终端窗口
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Joelle.android\debug.keystore | openssl sha1 -binary | openssl enc -a -e
但它抛出以下错误
openssl error :'keytool is invalid command'
请指导我...
感谢
键工具通常在 JRE bin 文件夹中找到,在我的情况下它存在于
C:\Program Files\Java\jre6\bin
所以你应该写
cd C:\Program Files\Java\jre6\bin
然后
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Joelle.android\debug.keystore |OpenSSL SHA1 -二进制 | openssl enc -a -e
有很好的工具
尝试使用此工具生成密钥哈希 http://www.easyfacebookandroidsdk.com/download/keyhash.zip
尝试使用
keytool -exportcert -alias androiddebugkey -keystore C:UsersJoelle.androiddebug.keystore | openssl sha1 -binary | openssl base64
而不是只编写keytool,你必须指定它的完整路径,即就我而言,路径是:
C:Program Files (x86)Javajre6binkeytool.exe