SHA1键DEBUG&发布ANDROID STUDIO MAC [英] SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC

查看:119
本文介绍了SHA1键DEBUG&发布ANDROID STUDIO MAC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用android studio在mac上调试和发布我的SHA1密钥?
(这些是Google API密钥所必需的)

解决方案

调试:


  1. 点击视图右侧的Gradle标签。

  2. ROOT文件夹 - >任务 - > android - >签名报告 双击,这将使用签名报告构建并在底部视图中发布您的SHA1。


RELEASE:


  1. 在android studio中。构建 - >生成已签名的APK ...并点击下一步


  2. 复制密钥库路径和密钥别名。 b


  1. 遍历Java中存在的jdk路径的bin文件夹。

  2. 打开终端并输入:



    keytool -list -v -keystore密钥存储路径-alias密钥别名

  3. 输入密钥密码这将打印出您的版本SHA1。



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:

  1. Click on the Gradle tab on the right hand side of the view.

  2. Go to the ROOT folder -> Tasks -> android -> signingReport

  3. Double click, this will build with the signingReport and post in your bottom view your SHA1.

RELEASE:

  1. In android studio. Build -> Generate Signed APK... and click Next

  2. Copy your key store path and key alias.

  1. Traverse to the "bin" folder of the jdk path present in Java.

  2. Open terminal and enter:

    keytool -list -v -keystore "key store path" -alias "key alias"

  3. Enter your key password and this will print out your release SHA1.

这篇关于SHA1键DEBUG&发布ANDROID STUDIO MAC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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