DEBUG & SHA1 密钥发布 ANDROID STUDIO MAC ,如何在 Mac 中生成 SHA1 发布密钥? [英] SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC , How to generate SHA1 Release Keys in Mac?
问题描述
如何在 Mac 上使用 android studio 获取用于调试和发布的 SHA1 密钥?(这些是 Google API 密钥所必需的)
How do I get my SHA1 Keys for debug and release using android studio on a mac? (These are required for Google API Keys)
推荐答案
DEBUG:
单击视图右侧的 Gradle 选项卡.
Click on the Gradle tab on the right hand side of the view.
转到ROOT文件夹->任务->android->signingReport
Go to the ROOT folder -> Tasks -> android -> signingReport
双击,这将使用签名报告构建并在您的底部视图中发布您的 SHA1.
Double click, this will build with the signingReport and post in your bottom view your SHA1.
发布:
在安卓工作室.Build -> Generate Signed APK... 然后点击 Next
In android studio. Build -> Generate Signed APK... and click Next
复制您的密钥存储路径和密钥别名.
Copy your key store path and key alias.
遍历到Java中存在的jdk路径的bin"文件夹.
Traverse to the "bin" folder of the jdk path present in Java.
打开终端并输入:
keytool -list -v -keystore "密钥存储路径" -alias "密钥别名"
keytool -list -v -keystore "key store path" -alias "key alias"
输入您的密钥密码,这将打印出您的发行版 SHA1.
Enter your key password and this will print out your release SHA1.
这篇关于DEBUG & SHA1 密钥发布 ANDROID STUDIO MAC ,如何在 Mac 中生成 SHA1 发布密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!