在使用谷歌地图API的Andr​​oid项目共享一个调试的关键 [英] Sharing a debug key on an Android project that uses the Google Maps API

查看:157
本文介绍了在使用谷歌地图API的Andr​​oid项目共享一个调试的关键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作有几个人是利用谷歌地图API的Andr​​oid项目。问题是,目前,我硬编码我的调试API密钥的MapView元素的属性。由于因为只有我的机器密钥库连接到该密钥我调试键只能在我的机器上,那是什么,我可以在获取谷歌地图我的项目合作伙伴合作的最好办法设置正确?这将是可怕的,如果我们有我们想要每次都手动更改硬件codeD调试键,得到它的工作在我们自己的机器。

此外,如果这是必要的信息,而不是我们所有的人都使用Eclipse。

解决方案
  

由于我调试键只能在我的机器上,因为只有我的机器已经连接到该键的密钥库,那是什么,我可以在获取谷歌地图我的项目合作伙伴一起建立正确的最佳方式?

复制这些合作伙伴之间的 debug.keystore 文件。

I am working on an Android project with a few others that utilizes the Google Maps API. The problem is, currently, I am hard-coding my debug API key as an attribute on the MapView element. Since my debug key only works on my machine because only my machine has the keystore tied to that key, what's the best way that I can work with my project partners on getting Google Maps set up properly? It would be horrible if we had to manually change the hard-coded debug key each time we wanted to get it to work on our own machines.

Also, if this is necessary information, not all of us are using Eclipse.

解决方案

Since my debug key only works on my machine because only my machine has the keystore tied to that key, what's the best way that I can work with my project partners on getting Google Maps set up properly?

Copy your debug.keystore file between those partners.

这篇关于在使用谷歌地图API的Andr​​oid项目共享一个调试的关键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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