且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取android发布证书指纹

更新时间:2023-02-17 18:46:34

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

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:什么是密钥库文件?什么?是用来做的吗?