当前位置:操作系统 > 安卓/Android >>

Android & JDK1.7申请mapkey的问题

今天开发map应用,在申请mapkey 的时候发现一个问题
申请的是SHA1   的值,不是MD5的值,这个问题是因为jdk1.7版本默认的是SHA1值
keytool -list -alias androiddebugkey -keystore "C:\Users\RW\.android\debug.keystore" -storepass android -keypass android
 \
 
查了查官方的文档,发现要在-list 前面加一个-v  就可以了
一下是官方说明
 
Reported by sund...@gmail.com, Aug 4, 2011 
 
With JDK 1.7 installed, keytool outputs by default SHA1 fingerprint, not MD5. Adding -v option allows to see MD5 as well. 
 
Please update the page with this info, many devs are having problems trying to get a maps key. 
 
 
Comment 1 by jrad...@gmail.com, Aug 19, 2011 
 
If it wasn't for stackoverflow I would have wasted a lot of time trying to get an MD5 fingerprint rather than a SHA1, which is useless when trying to get an api key for google maps. 
 
Comment 3 by petercoo...@gmail.com, Sep 15, 2011 
 
C1:0A:F3:C3:7A:84:F3:F7:6D:9A:59:C7:39:95:2E:79:D1:52:56:1A 
 
Comment 4 by project member r...@android.com, Oct 11, 2011 
 
(No comment was entered for this change.) 
 
Status: Unassigned 
Labels: Component-Web 
 \


摘自 伟哥~ YZ
补充:移动开发 , Android ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,