我们都知道使用Android sdk manager下载安装sdk速度非常慢,一般在10k/s以内,本文章推荐一种能够借助迅雷等下载工具下载sdk的zip包从而快速安装sdk的方法。
1.下载3个xml文件:
http://dl-ssl.google.com/android/repository/addon.xml
http://dl-ssl.google.com/android/repository/repository.xml
http://dl-ssl.google.com/android/repository/repository-5.xml
2.根据xml文件中的内容获取下载zip包的连接如下:
==========================================================================
<!-- http://dl-ssl.google.com/android/repository/addon.xml begin-->
<!-- ADD-ONS ....................... -->
http://dl-ssl.google.com/android/repository/google_apis-3-r03.zip
http://dl-ssl.google.com/android/repository/google_apis-4_r02.zip
http://dl-ssl.google.com/android/repository/google_apis-5_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-6_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-7_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-8_r02.zip
http://dl-ssl.google.com/android/repository/google_apis-9_r02.zip
http://dl-ssl.google.com/android/repository/google_apis-10_r02.zip
http://dl-ssl.google.com/android/repository/google_apis-11_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-12_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-13_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-14_r01.zip
<!-- GOOGLE TV ADDONS ............. -->
http://dl-ssl.google.com/android/repository/google_tv-12_r02.zip
<!-- EXTRAS ....................... -->
http://dl-ssl.google.com/android/repository/market_licensing-r01.zip
http://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip
http://dl-ssl.google.com/android/repository/market_billing_r01.zip
http://dl-ssl.google.com/android/repository/webdriver_r01.zip
<!-- http://dl-ssl.google.com/android/repository/addon.xml end-->
==========================================================================
==========================================================================
<!-- http://dl-ssl.google.com/android/repository/repository.xml begin-->
<!-- PLATFORM-TOOL ........................ -->
https://dl-ssl.google.com/android/repository/platform-tools_r09-windows.zip
<!-- TOOLS ........................ -->
https://dl-ssl.google.com/android/repository/tools_r15-windows.zip
<!-- http://dl-ssl.google.com/android/repository/repository.xml end-->
==========================================================================
==========================================================================
<!-- http://dl-ssl.google.com/android/repository/repository-5.xml begin-->
<!-- PLATFORMS ........................ -->
https://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zip
https://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip
https://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip
https://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
https://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip
https://dl-ssl.google.com/android/repository/android-2.1_r03-linux.zip
https://dl-ssl.google.com/android/repository/android-2.2_r03-linux.zip
https://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip
https://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip
https://dl-ssl.google.com/android/repository/android-3.0_r02-linux.zip
https://dl-ssl.google.com/android/repository/android-3.1_r03-linux.zip
https://dl-ssl.google.com/android/repository/android-3.2_r01-linux.zip
https://dl-ssl.google.com/android/repository/android-14_r01.zip
<!-- SYSTEM IMAGES ........................ -->
https://dl-ssl.google.com/android/repository/sysimg_armv7a-14_r01.zip
<!-- SAMPLES ........................ -->
https://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-2.3_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-2.3.3_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-3.0_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-3.1_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-3.2_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-14_r01.zip
<!-- PLATFORM-TOOLS ........................ -->
https://dl-ssl.google.com/android/repository/platform-tools_r08-windows.zip
<!-- TOOLS ........................ -->
https://dl-ssl.google.com/android/repository/tools_r14-windows.zip
<!-- DOCS ........................ -->
https://dl-ssl.google.com/android/repository/docs-14_r01.zip
https://dl-ssl.google.com/android/repository/docs-14_r01.zip
https://dl-ssl.google.com/android/repository/docs-14_r01.zip
https://dl-ssl.google.com/android/repository/docs-14_r01.zip
https://dl-ssl.google.com/android/repository/docs-14_r01.zip
https://dl-ssl.google.com/android/repository/docs-14_r01.zip
<!-- EXTRAS ........................ -->
https://dl-ssl.google.com/android/repository/support_r04.zip
<!-- http://dl-ssl.google.com/android/repository/repository-5.xml end-->
==========================================================================
复制https://dl-ssl。。。。。。。的直接可以在迅雷里面下载,速度非常快。
3.下载完后,在<sdk>/temp/文件夹中放入需要安装版本的zip包
4.运行sdk manager.exe开始安装,这是安装将跳过下载部分直接安装
5.安装完成