如何开发一个Android应用程序与谷歌地图在多台计算机API?多台、应用程序、地图、计算机

2023-09-06 02:46:41 作者:溺水的鱼

我想打一个Android应用程序,使用谷歌地图。我已经安装了Eclipse,Android的JDK和AVD(Android虚拟设备)。我跟着这个教程:http://developer.android.com/resources/tutorials/hello-world.html搞得我的第一个应用程序。它的工作原理:)

I want to make an Android Application, that uses Google Maps. I have installed Eclipse, Android JDK and an AVD (Android Virtual Device). I followed this tutorial: http://developer.android.com/resources/tutorials/hello-world.html and made my first app. And it works :)

不过,开发一个Android应用程序,使用谷歌地图API,你必须得到谷歌地图API密钥。根据这个链接http://$c$c.google.com/android/add-ons/google-apis/mapkey.html您获得通过获取在JDK文件夹调试关键的MD5指纹的关键。的问题是,这种指纹是从计算机到计算机的不同

But, to develop an Android app that uses Google Maps API, you have to obtain a Google Maps API Key. According to this link http://code.google.com/android/add-ons/google-apis/mapkey.html you obtain the key by getting the MD5 fingerprint of your debug key in the JDK folder. The problem is that this fingerprint is different from computer to computer.

所以我的问题是这样的:我们要开发多台计算机上。我们使用Subversion作为这个项目的源代码控制。这又如何解决呢?

So my problem is this: we have to develop on multiple computers. We are using subversion as a source control on this project. How can this be solved?

如果我注册我的MD5指纹,并获得通用的API密钥,这个密钥不会任何其它计算机上运行。我知道,一个解决办法是,开发商每一位得到自己的个人API密钥,但我不认为这是一个平稳的解决方案。

If I register my MD5 fingerprint and obtain a GM API Key, this key won't work on any other computer. I know that one solution is that each and every one of the developers get their own personal API key, but I don't think this is a smooth solution.

我试着读了MD5指纹,而据我了解,您可以创建,导出和导入。因此,可以在解决方案是,我创建了一个spesific指纹,出口,将其发送给所有其他开发人员,然后他们可以进口吗?但据我所知必须是一个调试sertificate?而在这种情况下,如何我做,出口和importe吗?我已经TREID读了这一点,并且知道我使用keytool命令,但我无法找到任何简单的例子。请赐教:)

I've tried to read up on MD5 fingerprints, and as I understand it you can create, export and import them. So, could the solution be that I create a spesific fingerprint, export it, send it to all the other developers and then they can import it? But as I understand it have to be a debug sertificate? And in that case, how to I make, export and importe one? I've treid to read up on this, and know that I use the keytool command, but I can't find any simple examples. Please enlighten me :)

推荐答案

您可以得到 debug.keystore 从一个团队成员,放入颠覆,然后instructy其他团队memebrs与一个来自库替换他们的 debug.keystore 文件。

You can get debug.keystore from one of the team members, put into Subversion and then instructy other team memebrs to replace theirs debug.keystore file with one from repository.

ADD1 :请参阅此链接也:http://groups.google.com/group/android-developers/browse_thread/thread/c9051635ab37f252

ADD2 : http://developer.android.com/guide/publishing/app-signing.html#debugmode

有关AVDS默认存储位置是在〜/ .android /在OS X和Linux,在C:\ Documents和Settings \ .android \在Windows XP中,并在C:\ Users \用户.android \在Windows Vista和Windows 7。

The default storage location for AVDs is in ~/.android/ on OS X and Linux, in C:\Documents and Settings\.android\ on Windows XP, and in C:\Users\.android\ on Windows Vista and Windows 7.