本文介绍了谷歌地图发布密钥SHA1显示一些加密文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用谷歌地图。在调试模式下,这太棒了。对于发布模式,我尝试从我的windows10 hp probook获得发行版SHA1密钥。但是我得到了一些加密文本,而不是SHA1。



我的命令如下:

  C:\程序文件\Java\jdk1.8.0_45\bin> keytool -exportcert -alias razon ** -keystore E:\keystore\keystore.jks 

输出如下,以及一些未知的迹象,无法在这里写出:

  0S10 U8810dhaka10Udhaka10U 
410608143654Z0S10 U8810dhaka10Udhaka10U

然后我使用SHA1在Developer Console中为Google Maps创建另一个API密钥,以前在另一个项目中使用。使用此API,地图在发布模式下工作,但只能在我的设备(Nexus 5,os6.1)中使用。
$ b

我的问题


  1. 如何获得实际的SHA1?

  2. 现在可以做什么?请帮助。


解决方案您可以使用 keytool -list - v 命令():

  keytool -list -v -alias razon ** -keystore E:\keystore\keystore .jks 


I was working with google map. In debug mode, it was fantastic. For release mode I tried to get the release SHA1 key from my windows10 hp probook. But i got some encrypted text instead of SHA1.

My command is as follows:

C:\Program Files\Java\jdk1.8.0_45\bin>keytool -exportcert -alias razon** -keystore E:\keystore\keystore.jks

The output was as follows along with some unknown signs that are unable to write here:

 0S10 U8810dhaka10Udhaka10U
 410608143654Z0S10 U8810dhaka10Udhaka10U

Then I created another API key for google map from Developer console with a SHA1, used previously in another project. With this API, the map is working in release mode but only in my device(Nexus 5, os6.1).

My Questions

  1. How can I get the actual SHA1?
  2. What can I do now? Please help.
解决方案

You can use the keytool -list -v command (documentation):

keytool -list -v -alias razon** -keystore E:\keystore\keystore.jks

这篇关于谷歌地图发布密钥SHA1显示一些加密文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 03:33