Android & JDK1.7申請mapkey的問題

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.