Android - The API key can only be specified once <meta-data> duplicates

前端 未结 1 2046
轻奢々
轻奢々 2020-12-16 12:26

I’m trying to add Google map in to may app, so I have taken the API key. Unfortunately when I inserted the API key in manifest.xml through a meta-data tag, it automatically

相关标签:
1条回答
  • 2020-12-16 12:50

    Delete your "com.google.android.maps.v2.API_KEY" meta-data entry.

    The "com.google.android.geo.API_KEY" entry is sufficient for both the Maps and Places services.

    Source: https://code.google.com/p/gmaps-api-issues/issues/detail?id=7824


    EDIT - Google updated their documents to explicitly call this out now:

    1. https://developers.google.com/places/android-api/start#api-key
    2. https://developers.google.com/maps/documentation/android-sdk/signup#use-key
    0 讨论(0)
提交回复
热议问题