Google Maps API Key in release build doesn't work

后端 未结 5 789
南方客
南方客 2020-12-30 09:36

I\'m currently developing an application for Android and I\'m using Google Maps API. In developer console, I added my SHA1 certificate print, followed by my package name. Ev

5条回答
  •  别那么骄傲
    2020-12-30 10:17

    I had this same problem, it was super frustrating. What I ended up doing was taking the key I made using my release keystore and putting it in the google developers console. Then, added the following into the android manifest.

    
    

    I'm sure you read the documentation on this, but make sure you follow the instructions for the release certificate to the dot.

    https://developers.google.com/maps/documentation/android/signup

    You could also follow the link that was generated for you in the google_maps_api.xml file. This automates the process of entering the key into the developer console. However, make sure you still add that meta data value into your manifest.

提交回复
热议问题