SHA1 for google map release key is showing some encrypted text

放肆的年华 提交于 2020-01-15 06:46:05

问题


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.

回答1:


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

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



回答2:


More easiest way:

Double click on the signingReport. You will see your debug and release SHA1 fingerprint. But before that you must have to set the keystore file from Project structure.

In order to do that, go to File>Project Structures...>app>Sigining>+ After that give a name and locate the store file(keystore or .jks) and provide your alias and password. Then Click OK.

Then again go to File>Project Structures...>app>Build Types and there you will see debug and release. Select each of them and change the Sigining Config value to you newly created one.



来源:https://stackoverflow.com/questions/39598876/sha1-for-google-map-release-key-is-showing-some-encrypted-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!