获取Android的公共地图API密钥 [英] Obtaining Android Public Map API Key

查看:138
本文介绍了获取Android的公共地图API密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图获得我的Andr​​oid应用一个公共地图API密钥。不过,我从谷歌获得的公共密钥不起作用。

I have been trying to obtain a public map api key for my Android app. However the public key that I receive from Google does not work.

我一直使用以下步骤:

获取发布公共地图API密钥

Obtaining Release Public Map API Key

1.Obtain私有密钥:

1.Obtain Private Key:


  • 的Eclipse使用导出签署发布应用程序并创建新的密钥库

2.Obtain MD5证书:

2.Obtain MD5 certificate:


  • 使用别名和密钥库设置

  • using alias and keystore set up

使用Java中的Keytool目录:密钥工具-list -alias poly_alias -keystore

use keytool in Java directory: keytool -list -alias poly_alias -keystore

复制MD5证书

3.Obtain地图API密钥:

3.Obtain API Map Key:

  • Visit http://code.google.com/android/maps-api-signup.html and enter MD5 certificate
  • copy key

4.使用新的地图API密钥:

4.Use New Map API Key:


  • 在strings.xml中字符串插入字符串新地图键mapApiKey

有没有人有任何建议,我在做什么错了?

Does anyone have any suggestions on what I am doing wrong?

推荐答案

您是在最后一步粗略,所以你可能想看看这个页面上的最后两个步骤:

You were sketchy on the last step, so you may want to look at the final two steps on this page:

的http:// code.google.com/android/add-ons/google-apis/mapkey.html#finalsteps

如果仍然无法正常工作,您可能想解释发生了什么,并更改值,但你可能想显示你的布局文件和Android清单,中的一个例子,看看是否有可能做了一个错字或东西。

If it still doesn't work, you may want to explain what is happening, and change the values, but you may want to show an example of one of your layout files and the android manifest, to see if you may have made a typo or something.

这篇关于获取Android的公共地图API密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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