Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> 手動下載Android SDK

手動下載Android SDK

編輯:關於Android編程

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

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved