为所有开发人员提供一个 Google Maps 密钥? [英] One Google Maps key for all developers?

查看:43
本文介绍了为所有开发人员提供一个 Google Maps 密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在应用程序中使用了 Google MapView,但在不同的计算机上,我们必须使用不同的 API 密钥,否则 MapView 不会显示任何内容.

We are using a Google MapView in our application but on different computers we must use different API keys, otherwise the MapView doesn't display anything.

有没有办法为所有开发者设置一个密钥?

Is there a way to set one key for all developers?

推荐答案

有没有办法为所有开发者设置一个密钥?

Is there a way to set one key for all developers?

对于调试签名密钥,在开发者 PC 之间复制您的调试密钥库(例如,~/.android/debug.keystore),并记住在该密钥库到期时再次更新所有这些.

For the debug signing key, copy your debug keystore (e.g., ~/.android/debug.keystore) between developer PCs, and remember to update all of them again when that keystore expires.

对于生产签名密钥,在开发者 PC 之间复制生产密钥库.

For the production signing key, copy the production keystore between developer PCs.

请注意,我没有尝试在 Windows 和非 Windows(OS X、Linux)之间复制密钥库,所以我不知道那里是否存在与行尾相关的任何可能问题.

Note that I have not tried copying keystores between Windows and non-Windows (OS X, Linux), so I don't know if there are any possible issues there related to line endings.

这篇关于为所有开发人员提供一个 Google Maps 密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆