如何生成一个新的,第二个谷歌地图API密钥为Android?密钥、第二个、地图、API

2023-09-03 20:55:29 作者:♂精致的谎言

我需要生成一个新的API密钥我的Andr​​oid应用程序。但是,当我按照步骤在的http:// code.google.com /安卓/插件/谷歌的API / mapkey.html 的它总是给我相同的密钥。我觉得有什么不对我的旧钥匙。我怎样才能得到一个不同的,新的吗?

I need to generate a new API key for my android application. But when I follow the steps on http://code.google.com/android/add-ons/google-apis/mapkey.html it always gives me the same key. I think there is something wrong with my old key. How can I get a different and new one?

任何帮助将AP preciated。

Any help will be appreciated.

推荐答案

创建API密钥地图

有关调试模式:

1.in CMD直接的路径为C:\ Program Files文件\的Java \ jdk1.7.0_07 \ BIN>

1.in cmd direct the path to C:\Program Files\Java\jdk1.7.0_07\bin>

2.paste以下keytool.exe的-list -alias androiddebugkey -keystoreC:\用户\ pradeep.android \ debug.keystore-storepass安卓-keypass机器人

2.paste the following keytool.exe -list -alias androiddebugkey -keystore "c:\users\pradeep.android\debug.keystore" -storepass android -keypass android

3.复印的MD5指纹并转到链接 HTTPS ://developers.google.com/maps/documentation/android/v1/maps-api-signup ,指纹复制到框,选中该复选框按下按钮。

3.copy the MD5 fingerprint and go to the link https://developers.google.com/maps/documentation/android/v1/maps-api-signup , copy the fingerprint to the box and check the check box hit the button..

4.Thats它生成的API密钥调试模式。

4.Thats it API key for debug mode was generated.

5.Copy的XML文件中的AP关键在哪里我只好给API密钥和运行应用程序。

5.Copy the AP key in the XML file where u have to give api key and run the app.

有关发行方式:

1.Generate一个使用eclipse密钥库

1.Generate a keystore using eclipse

i.Right click the project and android tools-> Export signed application package -> hit next and create a new keystore( Choose a location to store it and don't forget the location . its important).

ii.choose a location and keystore name and password,press next, and give alias name and password for that ,peroid and name and choose the destination file where to store the .apk file and press finish.

追踪国际相同的步骤这对于调试模式。唯一的区别是,我们将进入路径应该是上述密钥存储路径的第二步(替换此路径C:\用户\ pradeep.android \ debug.keystore所创建的路径)。完蛋了。

2.follow the same steps which for the debug mode . the only difference is in the second step that the path we will enter should be the above keystore path(replace this path c:\users\pradeep.android\debug.keystore to the created path). thats it.

3.do其他步骤如下。过.....

3.do the other steps as follows. over.....

加载签名的apk文件到您的Andr​​oid设备,并查看地图部分

load the signed apk file to your android device ,and check the map part