2025-02-10

今天開發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

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *