[英]How to create a SHA1/MD5 Fingerprint on Android Studio
I am new to Android studio programming.我是 Android 工作室编程的新手。 Here I want to run signing report , so that I can get the SHA1 fingerprint .
在这里我要运行签名报告,以便获得SHA1 指纹。 When I open the gradle window, it is just giving me some options, as in the screenshot given above.
当我打开gradle window 时,它只是给了我一些选项,如上面给出的屏幕截图所示。 The option signing report is not mentioned anywhere.
任何地方都没有提到期权签名报告。 I hadn't done anything on the project.
我没有在这个项目上做任何事情。 I have just created a new project.In this situation, how can I get the SHA1 fingerprint.
我刚刚创建了一个新项目。在这种情况下,如何获取 SHA1 指纹。 Any help is deeply appreciated.
任何帮助都深表感谢。
Clean your project and try this First Build your project, Go to Gradle
and click on Tasks
-> Android
and then signing report
清理您的项目并尝试此首先构建您的项目,Go 到
Gradle
并单击Tasks
- > Android
然后signing report
I had similar issue, this helped me我有类似的问题,这对我有帮助
Now i have founded the answer myself.现在我自己建立了答案。
If the signing report is missing on your gradle file and you need to get the SHA-1 fingerprint :如果您的 gradle 文件中缺少签名报告,并且您需要获取SHA-1 指纹:
1.Open the project 1.打开项目
2.Click on File menu -> Select New -> Click on Google -> Select Google Maps Activity 2.点击文件菜单 -> Select 新建 -> 点击谷歌 -> Select谷歌地图活动
3.On the resulting dialog box, simply click finish . 3.在出现的对话框中,只需单击完成。
4.Open it's XML File. 4.打开它的XML文件。
5.SHA-1 fingerprint will be on it, marked as a comment . 5.SHA-1指纹会在上面,标记为评论。
6.After copying the SHA-1 fingerprint, simply press Ctrl + Z to undo creating the google maps activity. 6.复制 SHA-1 指纹后,只需按Ctrl + Z即可撤消创建谷歌地图活动。
It will work fine.它会正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.