Getting Android Google Map v2 working in release version by generating SHA1 fingerprint for API key

后端 未结 2 1324
有刺的猬
有刺的猬 2020-12-19 07:29

I spent a long time tonight trying to figure out how to get my Google Map that worked in the debug version of my Android application to work in the release version. There w

2条回答
  •  生来不讨喜
    2020-12-19 08:32

    Follow the instructions given here. After creating your project in Google Developers Console, select APIs, you will be prompted with a section of Popular APIs, select Google Maps Android API. Press enable API.(the image below is showing the steps in the new version of the console) console's new version

    If you're still using the old console, enable the API, by selecting Services, then switch the button ON:

    enter image description here Note: You don't need to enable the API for the debug version!

    If you're map is still not showing try regenerating the key!

    (new version) enter image description here

    (old version)

    enter image description here Enter the new API key then Sync Project with Gradle Files!

提交回复
热议问题