首页 > 程序开发 > 移动开发 > Android >

手动下载Android SDK

2013-05-30

开发android有一段时间了,每次SDK更新时总是被下面问题困扰着1. 公司的网络是需要通过代理才能出外网的,SDK Manager设了代理,可还是下载不了。2. SDK Manage更新sdk还是比较慢今天试了试手动下载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: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>

相关文章
最新文章
热点推荐