歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> Linux編程

Android SDK 的快速安裝方法

我們都知道使用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-->
==========================================================================


3.下載完後,在<sdk>/temp/文件夾中放入需要安裝版本的zip包

4.運行sdk manager.exe開始安裝,這是安裝將跳過下載部分直接安裝

5.安裝完成

Copyright © Linux教程網 All Rights Reserved