开发人员在基于Google Maps服务进行开发之前,需要申请一组验证过的Map API Key,这样才可以使用Google Maps服务。申请过程如下:
1、在Eclipse中打开“Window”|“Preference”菜单,在左侧的选项中一次选择"Android"|"Bulid",在右侧的面板中可以看到Default debug keystore的路径。
2、打开CMD命令行,使用JDK自带的keytool工具,通过keystore生成MD5指纹。
3、注册一个Google账号,即Gmail账号,然后登录。
4、获取了MD5指纹认证之后,打开浏览器,在地址栏输入"https://developers.google.com/android/maps-api-signup",进入Map API Key生成页面。
5、在页面下方的My certificate's MD5 fingerprint文本框中输入前面获取的MD5认证指纹,并勾选"I have read and agree with the terms and conditions"前面的复选框。之后单击"Generate API K而已"按钮。
6、Map API Key申请成功。

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2021-11-24
  • 2021-12-17
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案