Android MapView display empty

前端 未结 4 1950
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 13:16

Manifest:




        
4条回答
  •  面向向阳花
    2021-02-08 14:14

    I guess you are making a mess from the version of Google Maps you are trying to implement. From the code that is used by you it's seems that you are trying to use Google Maps API V1.

    The problem with that is that you can't produce now days a new API key for Google Map API V1, this version is deprecated and Google doesn't provide new keys for it.

    from the comments it's looks that in the API Console you didn't activated the right API. Take a look at this blog post to get an Idea of how to produce an API Key for Google Map API V2 for Android:

    Google Maps API V2 Key

    Next, go over the following guide to implement this version in you application:

    Google Maps API V2

提交回复
热议问题