gpt4 book ai didi

android - com.google.android.geo.api_key 和 com.google.android.maps.v2.api_key 之间的区别?

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:29:23 25 4
gpt4 key购买 nike

我想知道 com.google.android.geo.API_KEYcom.google.android.maps.v2.API_KEY 元标记之间的区别。它们都用于设置 Google Maps API Key。但似乎找不到区别,哪个更适合使用?

最佳答案

来自official documentation :

Note: As shown above, com.google.android.geo.API_KEY is the recommended metadata name for the API key. A key with this name can be used to authenticate to multiple Google Maps-based APIs on the Android platform, including the Google Maps Android API. For backwards compatibility, the API also supports the name com.google.android.maps.v2.API_KEY. This legacy name allows authentication to the Android Maps API v2 only. An application can specify only one of the API key metadata names. If both are specified, the API throws an exception.

关于android - com.google.android.geo.api_key 和 com.google.android.maps.v2.api_key 之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48004345/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com