在Android地图V2 API密钥密钥、地图、Android、API

由网友(这颗心╮没畏惧)分享简介:我去的https://$c$c.google.com/apis/控制台/ 那么我这样做:密钥工具-v -list -alias ks_ms_ad -keystore W:\日食的android符号\密钥库\ exampleproject我转换输出执行subjectKeyIdentifier [KeyIdentifi...

我去的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<s7.@...B.).8。
0010:HH HH HH HH ...。
]
]
 

HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH;com.exampledomain.exampleproject 开发Android Map程序 如何获取 apikey Google Map API v2

谷歌居然接受了这一点,所以不知何故,我变成乱码变成可用的东西。而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-signkeystoreexampleproject

I converted the output

SubjectKeyIdentifier [
KeyIdentifier [
0000: HH HH HH HH HH HH HH HH   HH HH HH HH HH HH HH H  /x<s7.@...B.).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%.androiddebug.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:keystoreproduct
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 FilesJavajre7bin

阅读全文

相关推荐

最新文章