如何通过迅雷加速下载Android SDK

FQ去下了SDK Manager,- – 这个也要FQ下,安装上,开始在线更新,
然后发现速度只有10k不倒,50M的东西要拖四个小时,于是上网找解决办法,发现可以让迅雷代替下载。

首先,打开SDK Manager的时候,你会发现它会去读几个xml文件,默认是
https://dl-ssl.google.com/android/repository/repository.xml
https://dl-ssl.google.com/android/repository/addons_list.xml

第一个文件包含这样的内容:
<sdk:archive os=”any”>
<sdk:size>42435735</sdk:size>
<sdk:checksum type=”sha1″>9b6e86d8568558de4d606a7debc4f6049608dbd0</sdk:checksum>
<sdk:url>google_apis-4_r02.zip</sdk:url>
</sdk:archive>

这里面有文件名了,那按照用迅雷下载的文章的做法拼链接吧
我拼的链接如下

http://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zip

http://dl-ssl.google.com/android/repository/android-1.1_r1-linux.zip

http://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip

http://dl-ssl.google.com/android/repository/android-1.5_r04-macosx.zip

http://dl-ssl.google.com/android/repository/android-1.5_r04-linux.zip

http://dl-ssl.google.com/android/repository/android-1.6_r03-linux.zip

http://dl-ssl.google.com/android/repository/android-1.6_r03-macosx.zip

http://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip

http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.0_r01-macosx.zip

http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-macosx.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip

http://dl-ssl.google.com/android/repository/android-2.1_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-2.1_r02-macosx.zip

http://dl-ssl.google.com/android/repository/android-2.1_r02-windows.zip

http://dl-ssl.google.com/android/repository/android-2.2_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-2.2_r02-macosx.zip

http://dl-ssl.google.com/android/repository/android-2.2_r02-windows.zip

http://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-2.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-2.3.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-2.3.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-3.0_r01-linux.zip

http://dl-ssl.google.com/android/repository/platform-tools_r03-linux.zip

http://dl-ssl.google.com/android/repository/platform-tools_r03-macosx.zip

http://dl-ssl.google.com/android/repository/platform-tools_r03-windows.zip

http://dl-ssl.google.com/android/repository/tools_r10-linux.zip

http://dl-ssl.google.com/android/repository/tools_r10-macosx.zip

http://dl-ssl.google.com/android/repository/tools_r10-windows.zip

http://dl-ssl.google.com/android/repository/samples-3.0_r01-linux.zip

http://dl-ssl.google.com/android/repository/docs-3.0_r01-linux.zip

上述链接是当前SDK MANAGER里各版本的SDK的地址,是可以用迅雷下到的,但有的版本包含了多个平台的,所以要根据你使用的操作系统做筛选
但其中有些包是以linux结尾实际上是所有平台都可用的,比如

http://dl-ssl.google.com/android/repository/tools_r10-linux.zip

http://dl-ssl.google.com/android/repository/tools_r10-macosx.zip

http://dl-ssl.google.com/android/repository/tools_r10-windows.zip

三个平台都有的文件,如果我只需要在windows使用,那我只下载最后一个就好了
像docs***和samples**这种包应该是各平台通用,所以只有一个文件。

如果实在不知道该下什么,那就用SDK MANAGER 先升级,在升级的过程中
c:/program files/android/android-sdk/temp/目录下就会看正在下载的文件,知道了文件名,然后去拼链接,最后到迅雷中去下载。
下载完之后,把文件放在c:/program files/android/android-sdk/temp/目录下,重新用SDK Manager开始升级,就省去了SDK Manager去下载的时间。

对于addon,
这个xml里包含了两部分addon,

https://dl-ssl.google.com/android/repository/addons_list.xml

<?xml version=”1.0″ encoding=”UTF-8″?>
<sdk:sdk-addons-list xmlns:sdk=”http://schemas.android.com/sdk/android/addons-list/1″>

<sdk:addon-site>
<sdk:url>https://dl-ssl.google.com/android/repository/addon.xml</sdk:url>
<sdk:name>Google Inc. add-ons</sdk:name>
</sdk:addon-site>

<sdk:addon-site>
<sdk:url>http://innovator.samsungmobile.com/android/repository/repository.xml</sdk:url>
<sdk:name>Samsung Electronics add-ons</sdk:name>
</sdk:addon-site>
</sdk:sdk-addons-list>

如法炮制得出下面的链接

https://dl-ssl.google.com/android/repository/google_apis-3-r03.zip

https://dl-ssl.google.com/android/repository/google_apis-4_r02.zip

https://dl-ssl.google.com/android/repository/google_apis-5_r01.zip

https://dl-ssl.google.com/android/repository/google_apis-6_r01.zip

https://dl-ssl.google.com/android/repository/google_apis-7_r01.zip

https://dl-ssl.google.com/android/repository/google_apis-8_r02.zip

https://dl-ssl.google.com/android/repository/market_licensing-r01.zip

https://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip

https://dl-ssl.google.com/android/repository/google_apis-9_r02.zip

https://dl-ssl.google.com/android/repository/market_billing_r01.zip

https://dl-ssl.google.com/android/repository/google_apis-10_r01.zip

https://dl-ssl.google.com/android/repository/google_apis-11_r01.zip

http://innovator.samsungmobile.com/android/repository/addon_samsung_GT_2.2_api-8_r01.zip

这样就解决了Android SDK 安装问题.

 

安装时候提示tools文件夹不能重命名,可以把安装包直接加压到tools中

你可能感兴趣的:(android sdk)