android學習筆記1-google map API

來源:互聯網
上載者:User

標籤:android   style   c   a   int   使用   

一.前期準備

1)google account:用gmail郵箱就ok

2)debug key:也就是開發人員金鑰

3)app ID:也就是package 名稱

【步驟】

1.開啟Eclipse->Eindows->Preferences->Android->Build

  複製SHA1 fingerprint後面那一串序

2.用google account登入google,進入google console(直接搜尋google console)

   左邊的APIs,然後需要找的就是Google Maps Andorid API V2

  (這裡一開始是off的,所以要在下面的列表裡面去找,然後去開啟on)

 

3.接下來點左邊的Credentials,申請使用權,這裡有兩個,點下面那個CREATE NEW KEY;

   申請Andorid Key; 

   這裡彈出來一個視窗,需要貼兩個東西,一個是剛才SHA1的序號,然後;隔開,另一個是package ID;

   (package ID,在專案裡的AndroidManifest.xml裡面可以找到唯一的package ID)

   確認之後,可以看到API key 後面有一串序列,複製

   回到AndroidManifest.xml,有一行<meta-data>標籤下面需要加入這個序列才行

 

等待更新中。。。

聯繫我們

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