Google Maps V2 not working in production with correct key

后端 未结 8 1262
野性不改
野性不改 2020-12-05 23:26

I\'m having major troubles getting Google Maps working in production within an Android app. This is what I am currently getting (the bottom is just ads).

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 23:44

    I was having these same issues, and was banging my head against the wall for a few days. I read all the posts about putting the correct key in place. I kept putting the correct key in my google_maps_api.xml file. StKent above mentioned to make sure to overwrite with the actual string in AndroidManifest.xml. This is what fixed it for me.

    What I had when it didn't work: in AndroidManifest.xml:

    
    

    and in google_maps_api.xml:

     AIza_the actual key
    

    What I changed to for it to work I changed my AndroidManifest.xml to include:

    
    

提交回复
热议问题