Android google map blank

前端 未结 3 1778
栀梦
栀梦 2021-01-12 22:56

1) Created new project.

2) Selected google map created.

3) Debug google_maps_api.xml steps followed.

  • https://console.developers.google.com/f

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 23:25

    You are generating SHA-1 in cmd. sometimes cmd returns local SHA-1 not Administrator. So try to create SHA-1 from Android studio. follow steps to generate SHA-1:

    1. Click on Gradle (right panel of the studio where Preview option shows)
    2. Click on Project name
    3. click on Task
    4. click on android
    5. then click signingReport

    your SHA-1 is generated copy this SHA-1 and paste in google console.

提交回复
热议问题