How to get google map apikey in android

后端 未结 7 1696
轮回少年
轮回少年 2020-12-05 05:53

Hi At that time working on google map. I want to display map in my activity. I successfully display the map view. But i cant show the map i think i have wrong api key so h

相关标签:
7条回答
  • 2020-12-05 06:47

    I faced the same problem and my issue was I used debug certificate not release certificate

    if you use this for release certificate "not debug certificate":

    Enter the following at a terminal or command prompt:

    keytool -list -v -keystore your_keystore_name -alias your_alias_name

    in your_keystore_name write the path for the file you used for signed api which its extension .jks

    take the sha1 which you will get in the output and used it to get the key.

    https://developers.google.com/maps/documentation/android-api/signup#display_your_apps_certificate_information

    0 讨论(0)
提交回复
热议问题