Google Maps API V2 - always get authentication error

前端 未结 7 1578
心在旅途
心在旅途 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 21:48

    i have same problem i spent two weeks to get a solution at last i got it. just remove key from res/values/google_maps_api.c and repalace it by new key follow below steps you will get a new key.

    1> Find SHA1 by Using that command in command prompt:
    
    keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
    
    2> Get Package name from android manifest and use finger print of SHA1 for create an new api key 
    
    
    3> copy created key and past it in res/values/google_maps_api.xml and also past in android manifest 
    
    Paste Here New Api
    
    
    
    

提交回复
热议问题