android - 使用 Android Studio 生成发布 SHA1 证书

标签 android firebase android-studio sha1

<分区>

我正在使用 Android Studio 来帮助我构建发布 SHA1 证书,方法是转到

  • 右上角的 Gradle 设置
  • 使用齿轮图标导航到 signingReport
  • 右键单击然后运行它

它会生成调试 SHA1 证书,如下所示(变体):

enter image description here

如何在不使用命令行的情况下使用相同的工具生成发布证书

最佳答案

选择您的 buildVariant发布 类型。然后转到 Project structure -> Default config -> SigninConfig -> 然后为 Release SHA1 选择你的 release signinConfig 并为 Debug SHA1 选择 debug signinConfig .

enter image description here

关于android - 使用 Android Studio 生成发布 SHA1 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54452933/

相关文章:

android - 相机 Intent 未显示在 Intent 选择器中

android - 如何在单击抽屉导航上的项目时打开不同的 Activity ?

android - SSL 握手异常 : Certificate Exception using HttpURLConnetion with Android 4. 2.2

firebase - 如何有效地查找一组节点是否包含 Firebase 中另一组节点的元素?

android-studio - 任务 ':app:processDebugResources' 生成无效的 XML

java - 在 Internet 连接可用时执行任务

android - 如何像 Google Apps 一样在谷歌地图中同时显示 MarkerIcon 和标题?

ios - 使用新的 Firebase Messaging SDK 在 iOS 中发送通知

ios - 删除 firebase 中的对象

Android Studio TFS(团队基础服务器)