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

人盡茶涼 提交于 2019-11-30 11:10:02

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!