手动下载Android SDK
开发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:u
补充:移动开发 , Android ,