怎麼申請google map api-key

來源:互聯網
上載者:User

 

首先檢查C:/Documents and Settings/Administrator/.android下面是否有debug.keystore,如沒有則在eclispe下建立一個以Google APIs為Build Targe的項目,則該檔案會產生。

 

 

 


1、在命令列下輸入:

keytool -list -alias androiddebugkey -keystore (debug.keystore檔案路徑) -storepass android -keypass android 如:

 

其中:

-list:在終端列印出認證的MD5指紋

-keystore <keystore-name>.keystore:目標密鑰所在的密鑰庫

-storepass <password>:密鑰庫密碼

-alias <alias_name>:密鑰庫內產生MD5指紋的密鑰別名

-keypass <password>:指定密鑰密碼

3、有了MD5密碼就可以到Google Map API密鑰的產生頁面:

http://code.google.com/intl/zh-CN/android/maps-api-signup.html 申請Map API密鑰了:


至此,我們就獲得了所有開發階段的應用程式通用的Map API密鑰。不過需要注意的是,在應用程式發布時,需要根據為應用程式簽名的密鑰重建Map API密鑰,並在程式中修改引用到Map API密鑰的地方。

 


 

 

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.