获取地图API密钥:机器人 [英] Get Maps API Key :Android

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

问题描述

我下面这个链接 http://eagle.phys.utk.edu /guidry/android/apiKey.html 来生成证书的MD5指纹。

我已经看到下面的线程也:

<一个href=\"http://stackoverflow.com/questions/8639874/google-maps-error-when-trying-to-get-my-api-key-for-android\">Google试图让我为Android API密钥时,地图误差

<一个href=\"http://stackoverflow.com/questions/6462837/how-to-find-the-md5-fingerprint-of-my-android-app\">How找到我的Andr​​oid应用程序的MD5指纹

我使用Windows XP操作系统.The debug.keystore位于C:\\ Documents和Settings \\ Admin.android \\ debug.keystore

但CMD提示它给人找不到响应网络路径。


  1. 请指导我怎样才能MD5摘要。


  2. 同时,我想知道是什么在调试关键的区别
    和释放

    键?这是两个不同的密钥?如果是的话
        怎么样
            我可以生成它们??


  3. 有什么办法采用,我们可以使用相同的调试和发布
    在不同的机器密钥。



解决方案

  • 找到您的系统上debug.keystore。它通常是在Windows上的 USER_HOME \\本地设置\\应用数据\\ .android 文件夹中。


  • 使用密钥工具实用程序生成证书指纹(MD5)。密钥工具自带的默认JDK安装。

    C:> keytool的-list -alias androiddebugkey -keystore .android \\ debug.keystore -storepass的android -keypass android的


您可以根据您的调试证书得到一个临时的地图API密钥,但你发布应用程序之前,必须根据相应的MapViews的释放证明和更新引用新的密钥注册

您可能还需要获得其他版本密钥如果您的应用程序访问的服务或使用,需要你使用的是基于您的私钥密钥的第三方库。例如,如果您的应用程序使用的MapView类,这是谷歌地图外部库的一部分,你需要注册与谷歌地图服务应用程序并获取Maps API密钥。有关获取Maps API密钥的信息,请参阅获取Maps API密钥。

请参阅本:

I am following this link http://eagle.phys.utk.edu/guidry/android/apiKey.html to generate MD5 fingerprint of the certificate.

I have seen following threads too :

Google maps error when trying to get my API Key for android

How to find the MD5 fingerprint of my Android App

I am using Windows xp OS .The debug.keystore is located at C:\Documents and Settings\Admin.android\debug.keystore.

but on cmd prompt it gives response network path not found.

  1. Please guide me how can i generate MD5 digest.

  2. And also I would like to know what is the difference in debug key and release

    key ?? Are these two different keys ?? If yes then How can i generate them ??

  3. Is there any way by adopting that we can use same debug and release keys on different machines.

解决方案

  • Locate debug.keystore on your system. It is usually in the USER_HOME\Local Settings\Application Data\.android folder on windows.

  • Use the keytool utility to generate certificate fingerprint (MD5). keytool utility that comes with the default JDK installation.

    C:>keytool -list -alias androiddebugkey -keystore .android\debug.keystore -storepass android -keypass android

You can get a temporary Maps API Key based on your debug certificate, but before you publish your application, you must register for a new Key based on your release certificate and update references in your MapViews accordingly

You may also have to obtain other release keys if your application accesses a service or uses a third-party library that requires you to use a key that is based on your private key. For example, if your application uses the MapView class, which is part of the Google Maps external library, you will need to register your application with the Google Maps service and obtain a Maps API key. For information about getting a Maps API key, see Obtaining a Maps API key.

refer this:

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

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