如何在 Android Studio 4.2.1 中获取 SHA1 和 SHA256 [英] How to get SHA1 and SHA256 in Android Studio 4.2.1
问题描述
一般我们可以从SHA证书指纹Gradle(在 Android Studio 的右侧)>任务 >安卓>签约报告
Generally we can SHA certificate fingerprints from Gradle (in right hand side of Android Studio) > Task > Android > signingReport
但在 Android Studio 最新更新 4.2.1 中,任务没有显示获取 SHA 指纹的选项
But in Android Studio Latest Update 4.2.1 the Task is not showing option to get the SHA fingerprint
所以有人可以帮我吗?
推荐答案
选项 1 :只需转到 gradle 选项(在右侧),然后单击弹出窗口左上角的 gradle 图标
Option 1 : Just goto gradle option (in the right side) then click on the gradle icon in the left-top side of the popup
然后会出现一个弹出窗口,上面写着运行任何东西";姓名,然后输入gradle signatureReport";然后按回车
then a popup will appears with "Run Anything" name , then type "gradle signingReport" and press enter
然后您将在运行选项卡中获得 SHA
Then you will get the SHA in run tab
选项 2:在 Android Studio 4.2.1 中 Gradle 任务列表默认是禁用的您可以从以下位置重新启用它:设置 >实验 >在 Gradle 同步期间不要构建 Gradle 任务列表.
Option 2 : In Android Studio 4.2.1 the Gradle task list is disabled by default You can re-enable it from: Settings > Experimental > Do not build Gradle task list during Gradle sync.
这篇关于如何在 Android Studio 4.2.1 中获取 SHA1 和 SHA256的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!