Google Maps API V2 - always get authentication error

前端 未结 7 1516
心在旅途
心在旅途 2020-12-19 21:31

I found lots of questions regarding this - and I am almost ashamed to ask it myself.

But no matter how hard I try, I simple do not get the Maps API running

7条回答
  •  有刺的猬
    2020-12-19 22:07

    Assuming

    • you are trying this on a device that has access to Google Play Services
    • you have linked your project with the Google Play Services library
    • you have setup the necessary permissions like this:

    snippet from manifest:

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    • you have setup the map key like this :

    enter image description here

    • you have put the meta-data tag inside the application tag

      
      
    • you made sure that you are building the APK with the correct keystore (corresponding to the one defined in the API console).

    • you removed and redeployed your application completely after checking / updating these steps you should be good to go.

    From my experience I was able to follow the instructions on Google Maps Android API v2 Getting started, but I do recall having to completely undeploy and redeploy the app again after playing around with the API keys / permissions.

    On what device are you running ?

提交回复
热议问题