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

问题描述

我去的https://$c$c.google.com/apis/控制台/

那么我这样做:

 密钥工具-v -list -alias ks_ms_ad -keystore W:\日食的android符号\密钥库\ exampleproject
 

我转换输出

 执行subjectKeyIdentifier [
KeyIdentifier [
0000:HH HH HH HH HH HH HH HH HH HH HH HH HH HH HH ^ h /x<[email protected].).8。
0010:HH HH HH HH ...。
]
]
 

<$p$p><$c$c>HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH;com.exampledomain.exampleproject

谷歌居然接受了这一点,所以不知何故,我变成乱码变成可用的东西。而HH的条目匹配了与谷歌的API控制台网站所举的例子,所以有一个很小的机会我所做的其实是正确的。

但是,上面似乎不喜欢我怎么读它应该是什么?我真的应该做编辑我做了?我想我会得到一个准备使用MD5的密钥工具?

我收到witgh变焦按钮[+]空白屏幕[ - ]?这是为什么我认为有可能是一个问题。

解决方案

似乎是原因是我搞砸了。 (你会发现SHA1等上面我所提到),所以只是为他人谋取本瞎搞:

调试密钥工具指纹例如:

 的keytool -list -v -keystoreC:\用户\%你的名字%\机器人\ debug.keystore-alias androiddebugkey -storepass安卓-keypass机器人
HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH; com.company.product
 

发布密钥工具指纹例如:

 密钥工具-v -list -alias youralias -keystore W:\密钥库\产品
HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH; com.company.product
 

以上所有能够共享相同的API密钥,将有模式:

  A-ZA-Z0-9-
 

您可以获取API密钥在这里: HTTPS://$c$c.google.com/apis/console/

和发现keytool.exe的位置(例如)C:\ Program Files文件\的Java \ jre7 \ BIN

I went to https://code.google.com/apis/console/

I then did this:

keytool -v -list -alias ks_ms_ad -keystore W:\eclipse-android-sign\keystore\exampleproject

I converted the output

SubjectKeyIdentifier [
KeyIdentifier [
0000: HH HH HH HH HH HH HH HH   HH HH HH HH HH HH HH H  /x<[email protected].).8.
0010: HH HH HH HH                                        .. .
]
]

to

HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH;com.exampledomain.exampleproject

Google actually accepted this, so somehow I turned gibberish into something usable. The "HH" entries matched up with the example given in Google's API console site, so there is a small chance what I did was actually correct.

But above does not seem like how I read it should be? Am I really supposed to do the editing I did? I thought I would get a ready to use md5 from keytool?

I am getting a blank screen witgh zoom buttons [+] [-] which is partly why I think there may be a problem?

解决方案

Seem the cause was I had messed up. (You find SHA1 etc. above what I referenced) So just for for others messing around with this:

debug keytool fingerprint example:

keytool -list -v -keystore "C:\Users\%your name%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH;com.company.product

release keytool fingerprint example:

keytool -v -list -alias youralias -keystore W:\keystore\product
HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH;com.company.product

All above can then share the same API key which will have pattern:

a-zA-Z0-9-

You can get the API key here:https://code.google.com/apis/console/

And find keytool.exe here (example)C:\Program Files\Java\jre7\bin

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

08-23 03:53