Sharing a debug key on an Android project that uses the Google Maps API

隐身守侯 提交于 2019-12-01 11:28:52

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/9658570/sharing-a-debug-key-on-an-android-project-that-uses-the-google-maps-api

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