获取android发布证书指纹 [英] get android release Certificate Fingerprints

查看:244
本文介绍了获取android发布证书指纹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac El Capitan上使用Android Studio。我如何获得发行证书指纹?我需要Firebase。我不确定如何获得它。

I am using Android Studio on Mac El Capitan. How do I get the release Certificate Fingerprints? I need it for Firebase. I am not sure exactly how to get it.

推荐答案

只需测试一下(带有调试指纹),请在带终端的任何目录中运行以下命令。

Just to test it (with the debug fingerprint), run the following command in any directory with the terminal.

$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v

然后复制SHA1值并将其粘贴到Firebase控制台中。

Then copy the SHA1 value and paste it into your Firebase console.

请注意,以上内容适用于调试环境,如果要设置发布指纹,则必须创建密钥库,请检出这篇文章以了解如何操作,然后运行相同的命令,而不是〜/ .android /debug.keystore ,您应该输入〜/ YOUR / PA TH / TO / KEYSTORE

Be careful, the above will work for the debug environment, if you want to set up the release fingerprint you will have to create a keystore, check out this post to see how to do it, and then run the same command but instead of ~/.android/debug.keystore you should put ~/YOUR/PATH/TO/KEYSTORE

$ keytool -exportcert -alias androiddebugkey -keystore ~/YOUR/PATH/TO/KEYSTORE -list -v






Android:什么是密钥库文件?什么?是用来做的吗?

这篇关于获取android发布证书指纹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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