手動下載Android SDK

來源:互聯網
上載者:User

開發android有一段時間了,每次SDK更新時總是被下面問題困擾著

1. 公司的網路是需要通過代理才能出外網的,SDK Manager設了代理,可還是下載不了。

2. SDK Manage更新sdk還是比較慢

 


今天試了試手動下載sdk,速度嗷嗷的。

1. 獲得伺服器位址的url
開啟SDK Manager,查看SDK Manager的log會得到下面兩個URL
 
2. 獲得sdk, sampleCode,system-image等的地址
打卡http://dl-ssl.google.com/android/repository/repository-7.xml,裡面描述的就是各個版本的sdk
 sampleCode,system-image等的資訊。

找到對應的檔案名稱,拼接到http://dl-ssl.google.com/android/repository/後面就是對應的http地址。
比如http://dl-ssl.google.com/android/repository/android-17_r02.zip就是Android4.2的SDK。
[html]  <!-- PLATFORMS ........................ --> 
<sdk:platform> 
    <!-- Generated at Wed Feb 13 11:27:09 2013 from git_jb-mr1.1-dev @ 576024 --> 
    <sdk:revision>2</sdk:revision> 
    <sdk:description>Android SDK Platform 4.2.2</sdk:description> 
    <sdk:version>4.2.2</sdk:version> 
    <sdk:api-level>17</sdk:api-level> 
    <sdk:min-tools-rev> 
        <sdk:major>21</sdk:major> 
    </sdk:min-tools-rev> 
    <sdk:layoutlib> 
        <sdk:api>9</sdk:api> 
        <sdk:revision>1</sdk:revision> 
    </sdk:layoutlib> 
    <sdk:archives> 
        <sdk:archive arch="any" os="any"> 
            <sdk:size>48057484</sdk:size> 
            <sdk:checksum type="sha1">c442c32c1b702173ab0929a74486e4f86fe528ec</sdk:checksum> 
            <sdk:url>android-17_r02.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:platform> 
 
<!-- SYSTEM IMAGES ........................ --> 
<sdk:system-image> 
    <!-- Generated at Wed Feb 13 11:29:12 2013 from git_jb-mr1.1-dev @ 576024 --> 
    <sdk:revision>2</sdk:revision> 
    <sdk:description>Android SDK Platform 4.2.2</sdk:description> 
    <sdk:api-level>17</sdk:api-level> 
    <sdk:abi>armeabi-v7a</sdk:abi> 
    <sdk:archives> 
        <sdk:archive arch="any" os="any"> 
            <sdk:size>116553808</sdk:size> 
            <sdk:checksum type="sha1">1c321cda1af793b84d47d1a8d15f85444d265e3c</sdk:checksum> 
            <sdk:url>sysimg_armv7a-17_r02.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:system-image> 
 
<!-- SAMPLES ........................ --> 
<sdk:sample> 
    <!-- Generated at Mon Nov 12 17:18:09 2012 from git_jb-mr1-dev @ 526865 --> 
    <sdk:revision>1</sdk:revision> 
    <sdk:api-level>17</sdk:api-level> 
    <sdk:archives> 
        <sdk:archive arch="any" os="any"> 
            <sdk:size>14840030</sdk:size> 
            <sdk:checksum type="sha1">12d58cb26503610fc05bd7618c434cc6f983bc41</sdk:checksum> 
            <sdk:url>samples-17_r01.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:sample> 
 
<!-- PLATFORM-TOOLS ........................ --> 
<sdk:platform-tool> 
    <!-- Generated at Wed Feb 13 11:28:15 2013 from git_jb-mr1.1-dev @ 576024 --> 
    <sdk:revision> 
        <sdk:major>16</sdk:major> 
        <sdk:minor>0</sdk:minor> 
        <sdk:micro>2</sdk:micro> 
    </sdk:revision> 
    <sdk:archives> 
        <sdk:archive arch="any" os="windows"> 
            <sdk:size>11948088</sdk:size> 
            <sdk:checksum type="sha1">04444f63bc4ce0ca09d438cfe4ba5a5d2fb14c8c</sdk:checksum> 
            <sdk:url>platform-tools_r16.0.2-windows.zip</sdk:url> 
        </sdk:archive> 
        <sdk:archive arch="any" os="linux"> 
            <sdk:size>12685866</sdk:size> 
            <sdk:checksum type="sha1">65db9fb4fee337909ba204e87df3e97056dea95e</sdk:checksum> 
            <sdk:url>platform-tools_r16.0.2-linux.zip</sdk:url> 
        </sdk:archive> 
        <sdk:archive arch="any" os="macosx"> 
            <sdk:size>13151140</sdk:size> 
            <sdk:checksum type="sha1">59686218f3a69f3d97e6b16c5d6803311f93be35</sdk:checksum> 
            <sdk:url>platform-tools_r16.0.2-macosx.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:platform-tool> 
 
<!-- TOOLS ........................ --> 
<sdk:tool> 
    <!-- Generated at Tue May 14 16:45:59 2013 from git_tools_r22 @ 675183 --> 
    <sdk:revision> 
        <sdk:major>22</sdk:major> 
    </sdk:revision> 
    <sdk:min-platform-tools-rev> 
        <sdk:major>16</sdk:major> 
    </sdk:min-platform-tools-rev> 
    <sdk:archives> 
        <sdk:archive arch="any" os="windows"> 
            <sdk:size>107384736</sdk:size> 
            <sdk:checksum type="sha1">fd1b9de782737e6b80af74760db3f3f7ebbfcbcc</sdk:checksum> 
            <sdk:url>tools_r22-windows.zip</sdk:url> 
        </sdk:archive> 
        <sdk:archive arch="any" os="linux"> 
            <sdk:size>99899009</sdk:size> 
            <sdk:checksum type="sha1">49d866d568fe8517534a7918e98fa401c5ad8d0e</sdk:checksum> 
            <sdk:url>tools_r22-linux.zip</sdk:url> 
        </sdk:archive> 
        <sdk:archive arch="any" os="macosx"> 
            <sdk:size>71209983</sdk:size> 
            <sdk:checksum type="sha1">51dd81cdb7cc6cdc4a4ae543d43a22e0ed62bb45</sdk:checksum> 
            <sdk:url>tools_r22-macosx.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:tool> 
 
 
<!-- DOCS ........................ --> 
<sdk:doc> 
    <!-- Generated at Wed Feb 13 11:31:35 2013 from git_jb-mr1.1-dev @ 576024 --> 
    <sdk:revision>2</sdk:revision> 
    <sdk:api-level>17</sdk:api-level> 
    <sdk:archives> 
        <sdk:archive arch="any" os="any"> 
            <sdk:size>135640722</sdk:size> 
            <sdk:checksum type="sha1">e1dedba8687b6b2f33bcd5782aae8db0bc3617a6</sdk:checksum> 
            <sdk:url>docs-17_r02.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:doc> 
 
<!-- SOURCES ........................ --> 
<sdk:source> 
    <!-- Generated at Mon Nov 12 17:16:08 2012 from git_jb-mr1-dev @ 526865 --> 
    <sdk:revision>1</sdk:revision> 
    <sdk:api-level>17</sdk:api-level> 
    <sdk:archives> 
        <sdk:archive arch="any" os="any"> 
            <sdk:size>18976816</sdk:size> 
            <sdk:checksum type="sha1">6f1f18cd2d2b1852d7f6892df9cee3823349d43a</sdk:checksum> 
            <sdk:url>sources-17_r01.zip</sdk:url> 
        </sdk:archive> 
    </sdk:archives> 
    <sdk:uses-license ref="android-sdk-license"/> 
</sdk:source> 

相關文章

聯繫我們

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