Facebook Android 生成密钥哈希 [英] Facebook Android Generate Key Hash

查看:36
本文介绍了Facebook Android 生成密钥哈希的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试创建一个与 Facebook 集成的 android 应用程序,我已经了解了文档中必须生成密钥哈希文件的部分,它指定运行以下代码

Trying to create an android app with Facebook integration, I've gotten to the part in the docs where you have to generate a key hash file, it specifies to run the following code

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore 
| openssl sha1 -binary
| openssl base64

当我在终端中运行它时,我收到一个错误,提示密钥库被篡改或密码不正确,

When I run this in my terminal I get an error for Keystore tampered with or password was incorrect,

我只想生成我的密钥哈希

I just want to generate my Key Hash

谁能指出我正确的方向?

Can anyone point me in the right direction?

推荐答案

在 ~/.android/debug.keystore 下删除你的调试证书(在 Linux 和 Mac OS X 上);该目录类似于 Windows 上的 %USERHOME%/.android.

Delete your debug certificate under ~/.android/debug.keystore (on Linux and Mac OS X); the directory is something like %USERHOME%/.android on Windows.

当您下次尝试构建调试包时,Eclipse 插件应该会生成一个新证书.

The Eclipse plugin should then generate a new certificate when you next try to build a debug package.

让我知道这是否有效.

这篇关于Facebook Android 生成密钥哈希的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆