SHA1键DEBUG&发布ANDROID STUDIO MAC [英] SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC
问题描述
如何使用android studio在mac上调试和发布我的SHA1密钥?
(这些是Google API密钥所必需的)
调试:
-
点击视图右侧的Gradle标签。
ROOT文件夹 - >任务 - > android - >签名报告 双击,这将使用签名报告构建并在底部视图中发布您的SHA1。
RELEASE:
-
在android studio中。构建 - >生成已签名的APK ...并点击下一步
-
复制密钥库路径和密钥别名。 b
-
遍历Java中存在的jdk路径的bin文件夹。
打开终端并输入: -
输入密钥密码这将打印出您的版本SHA1。
keytool -list -v -keystore密钥存储路径-alias密钥别名
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:
Click on the Gradle tab on the right hand side of the view.
Go to the ROOT folder -> Tasks -> android -> signingReport
Double click, this will build with the signingReport and post in your bottom view your SHA1.
RELEASE:
In android studio. Build -> Generate Signed APK... and click Next
Copy your key store path and key alias.
Traverse to the "bin" folder of the jdk path present in Java.
Open terminal and enter:
keytool -list -v -keystore "key store path" -alias "key alias"
Enter your key password and this will print out your release SHA1.
这篇关于SHA1键DEBUG&发布ANDROID STUDIO MAC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!