简体   繁体   English

以编程方式 Google Maps API 密钥

[英]Google Maps API Key Programmatically

It makes no sense to me that the Google Maps API Key is required to live in the AndroidManifest.xml file.谷歌地图 API 密钥需要存在于AndroidManifest.xml文件中对我来说毫无意义。

There is no way to programmatically modify this file on run-time?有没有办法在运行时以编程方式修改这个文件?

So for each client that is using my Android App... I'm required to have a separate build process for each, just because of the Google Maps API Key?因此,对于每个使用我的 Android 应用程序的客户端......我需要为每个客户端有一个单独的构建过程,仅仅因为谷歌地图 API 密钥?

You can't update AndroidManifest.xml .您无法更新AndroidManifest.xml

However there isn't a need to swap out keys as Google Maps for Android/iOS doesn't have usage limits.但是,由于 Android/iOS 版 Google 地图没有使用限制,因此无需更换密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM