android sdk 安装更新慢:下载android sdk更新包离线安装解决方案

第一次安装android sdk后进行开发包的更新,你应该了解到需要的时间会很长,那么是否有办法提升安装的进度呢?这里提供一个取巧的方法,不会太麻烦,又能加快android开发环境的部署过程。具体请参考如下。

1、通过访问和分析android更新列表的xml在线地址,你可以获得最新完整的更新包下载信息,地址如下:

http://dl-ssl.google.com/android/repository/repository.xml

比如由此xml内容可分析到Android SDK Platform 3.2, revision 1的下载地址为:
http://dl-ssl.google.com/android/repository/android-3.2_r01-linux.zip

其他可类推获得,需要注意在2.2以前的版本是分操作系统平台的。下面是部分更新包下载地址:

Android应用开发相关下载资源

(1)Android SDK (Android SDK主安装包,包含SDK Manager、AVD Manager、工具包tools,释放后的根文件夹为android-sdk-windows):
revision 22.2.1
http://dl.google.com/android/android-sdk_r22.2.1-windows.zip
http://dl.google.com/android/installer_r22.2.1-windows.exe
http://dl.google.com/android/android-sdk_r22.2.1-macosx.zip
http://dl.google.com/android/android-sdk_r22.2.1-linux.tgz
revision 22.3
http://dl.google.com/android/android-sdk_r22.3-windows.zip
http://dl.google.com/android/installer_r22.3-windows.exe
http://dl.google.com/android/android-sdk_r22.3-macosx.zip
http://dl.google.com/android/android-sdk_r22.3-linux.tgz

(2)tools (Android SDK的工具包,释放到android-sdk-windows下,文件夹tools覆盖android-sdk-windows/tools)
revision 22.2.1
https://dl-ssl.google.com/android/repository/tools_r22.2.1-windows.zip
https://dl-ssl.google.com/android/repository/tools_r22.2.1-linux.zip
https://dl-ssl.google.com/android/repository/tools_r22.2.1-macosx.zip
revision 22.3
https://dl-ssl.google.com/android/repository/tools_r22.3-windows.zip
https://dl-ssl.google.com/android/repository/tools_r22.3-linux.zip
https://dl-ssl.google.com/android/repository/tools_r22.3-macosx.zip

(3)platform-tools (Android平台工具包,释放到android-sdk-windows下,产生文件夹platform-tools)
revision 17
https://dl-ssl.google.com/android/repository/platform-tools_r17-windows.zip
https://dl-ssl.google.com/android/repository/platform-tools_r17-linux.zip
https://dl-ssl.google.com/android/repository/platform-tools_r17-macosx.zip
revision 18.0.1
https://dl-ssl.google.com/android/repository/platform-tools_r18.0.1-windows.zip
https://dl-ssl.google.com/android/repository/platform-tools_r18.0.1-linux.zip
https://dl-ssl.google.com/android/repository/platform-tools_r18.0.1-macosx.zip
revision 19
https://dl-ssl.google.com/android/repository/platform-tools_r19-windows.zip
https://dl-ssl.google.com/android/repository/platform-tools_r19-linux.zip
https://dl-ssl.google.com/android/repository/platform-tools_r19-macosx.zip

(4)build-tools (释放到android-sdk-windows下,产生文件夹build-tools,各版本都可能用到)
revision 17
https://dl-ssl.google.com/android/repository/build-tools_r17-windows.zip
https://dl-ssl.google.com/android/repository/build-tools_r17-linux.zip
https://dl-ssl.google.com/android/repository/build-tools_r17-macosx.zip
revision 18.0.1
https://dl-ssl.google.com/android/repository/build-tools_r18.0.1-windows.zip
https://dl-ssl.google.com/android/repository/build-tools_r18.0.1-linux.zip
https://dl-ssl.google.com/android/repository/build-tools_r18.0.1-macosx.zip
revision 18.1
https://dl-ssl.google.com/android/repository/build-tools_r18.1-windows.zip
https://dl-ssl.google.com/android/repository/build-tools_r18.1-linux.zip
https://dl-ssl.google.com/android/repository/build-tools_r18.1-macosx.zip
revision 18.1.1
https://dl-ssl.google.com/android/repository/build-tools_r18.1.1-windows.zip
https://dl-ssl.google.com/android/repository/build-tools_r18.1.1-linux.zip
https://dl-ssl.google.com/android/repository/build-tools_r18.1.1-macosx.zip
revision 19
https://dl-ssl.google.com/android/repository/build-tools_r19-windows.zip
https://dl-ssl.google.com/android/repository/build-tools_r19-linux.zip
https://dl-ssl.google.com/android/repository/build-tools_r19-macosx.zip

(5)platforms (各种版本的Android平台,释放到android-sdk-windows/platforms下)
Android 1.1 (API 2):
https://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zip
https://dl-ssl.google.com/android/repository/android-1.1_r1-linux.zip
https://dl-ssl.google.com/android/repository/android-1.1_r1-macosx.zip
Android 1.5 (API 3):
https://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip
https://dl-ssl.google.com/android/repository/android-1.5_r04-linux.zip
https://dl-ssl.google.com/android/repository/android-1.5_r04-macosx.zip
Android 1.6 (API 4):
https://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip
https://dl-ssl.google.com/android/repository/android-1.6_r03-linux.zip
https://dl-ssl.google.com/android/repository/android-1.6_r03-macosx.zip
Android 2.0 (API 5) Obsolete:
https://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
https://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip
https://dl-ssl.google.com/android/repository/android-2.0_r01-macosx.zip
Android 2.0.1 (API 6) Obsolete:
https://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip
https://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip
https://dl-ssl.google.com/android/repository/android-2.0.1_r01-macosx.zip
Android 2.1 (API 7):
https://dl-ssl.google.com/android/repository/android-2.1_r03-linux.zip
Android 2.2 (API 8):
https://dl-ssl.google.com/android/repository/android-2.2_r03-linux.zip
Android 2.3 (API 9) Obsolete:
https://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip
Android 2.3.3 (API 10):
https://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip
Android 3.0 (API 11):
https://dl-ssl.google.com/android/repository/android-3.0_r02-linux.zip
Android 3.1 (API 12):
https://dl-ssl.google.com/android/repository/android-3.1_r03-linux.zip
Android 3.2 (API 13):
https://dl-ssl.google.com/android/repository/android-3.2_r01-linux.zip
Android 4.0 (API 14):
https://dl-ssl.google.com/android/repository/android-14_r03.zip
Android 4.0.3 (API 15):
https://dl-ssl.google.com/android/repository/android-15_r03.zip
Android 4.1.2 (API 16):
https://dl-ssl.google.com/android/repository/android-16_r04.zip
Android 4.2.2 (API 17):
https://dl-ssl.google.com/android/repository/android-17_r02.zip
Android 4.3 (API 18):
https://dl-ssl.google.com/android/repository/android-18_r02.zip
Android 4.4 (API 19):
https://dl-ssl.google.com/android/repository/android-19_r01.zip

(6)system-images (Android系统镜像,释放到android-sdk-windows/system-images/android-xx下[xx对应api版本数字])
system-images/android-10
http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-10_r02.zip
system-images/android-14
https://dl-ssl.google.com/android/repository/sysimg_armv7a-14_r02.zip
system-images/android-15
https://dl-ssl.google.com/android/repository/sysimg_armv7a-15_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/mips/sysimg_mips-15_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-15_r01.zip
system-images/android-16
https://dl-ssl.google.com/android/repository/sysimg_armv7a-16_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/mips/sysimg_mips-16_r04.zip
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-16_r01.zip
system-images/android-17
http://dl-ssl.google.com/android/repository/sysimg_armv7a-17_r02.zip
http://dl-ssl.google.com/android/repository/sys-img/mips/sysimg_mips-17_r01.zip
http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-17_r01.zip
system-images/android-18
http://dl-ssl.google.com/android/repository/sysimg_armv7a-18_r02.zip
http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-18_r01.zip
system-images/android-19
http://dl-ssl.google.com/android/repository/sysimg_armv7a-19_r01.zip

(7)docs (文档,释放到android-sdk-windows下,会产生文件夹docs)
https://dl-ssl.google.com/android/repository/docs-16_r03.zip
https://dl-ssl.google.com/android/repository/docs-17_r02.zip
https://dl-ssl.google.com/android/repository/docs-18_r01.zip
https://dl-ssl.google.com/android/repository/docs-19_r01.zip

(8)samples (应用实例,释放到android-sdk-windows/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_r02.zip
https://dl-ssl.google.com/android/repository/samples-15_r02.zip
https://dl-ssl.google.com/android/repository/samples-16_r01.zip
https://dl-ssl.google.com/android/repository/samples-17_r01.zip
https://dl-ssl.google.com/android/repository/samples-18_r01.zip
https://dl-ssl.google.com/android/repository/samples-19_r01.zip

(9)sources (Android SDK源程序,释放到android-sdk-windows/sources/android-xx下[xx对应api版本数字])
https://dl-ssl.google.com/android/repository/sources-14_r01.zip
https://dl-ssl.google.com/android/repository/sources-15_r02.zip
https://dl-ssl.google.com/android/repository/sources-16_r02.zip
https://dl-ssl.google.com/android/repository/sources-17_r01.zip
https://dl-ssl.google.com/android/repository/sources-18_r01.zip
https://dl-ssl.google.com/android/repository/sources-19_r01.zip

(10)extras (扩展应用,释放到android-sdk-windows/extras下)
Android Support Repository(extras/android/m2repository)
https://dl-ssl.google.com/android/repository/android_m2repository_r03.zip
Android Support Library(extras/android/support)
https://dl-ssl.google.com/android/repository/support_r19.zip
Google AdMob Ads SDK(extras/google/admob_ads_sdk)
https://dl-ssl.google.com/googleadmobadssdk/googleadmobadssdkandroid-6.4.1.zip
Google Analytics App Tracking SDK(extras/google/analytics_sdk_v2)
https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_1.4.2.zip
https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta4.zip
https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta4.1.zip
https://dl-ssl.google.com/android/repository/GoogleAnalyticsAndroid_2.0beta4.1.zip
https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta5.zip
https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta5.zip
[Deprecated]Google Cloud Messaging for Android Library(extras/google/gcm)
https://dl-ssl.google.com/android/repository/gcm_r03.zip
Google Play services for Froyo
https://dl-ssl.google.com/android/repository/google_play_services_3265130_r12.zip
Google Play services(extras/google/google_play_services)
https://dl-ssl.google.com/android/repository/google_play_services_4030530_r13.zip
Google Repository(extras/google/m2repository)
https://dl-ssl.google.com/android/repository/google_m2repository_r04.zip
Google Play APK Expansion Library(extras/google/play_apk_expansion)
https://dl-ssl.google.com/android/repository/market_apk_expansion-r03.zip
Google Play Billing Library(extras/google/play_billing)
https://dl-ssl.google.com/android/repository/play_billing_r05.zip
Google Play Licensing Library(extras/google/play_licensing)
https://dl-ssl.google.com/android/repository/market_licensing-r02.zip
Google USB Driver(extras/usb_driver)
https://dl-ssl.google.com/android/repository/usb_driver_r08-windows.zip
Google Web Driver(extras/google/webdriver)
https://dl-ssl.google.com/android/repository/webdriver_r02.zip
Intel x86 Emulator Accelerator(HAXM)(extras/intel/Hardware_Accelerated_Execution_Manager)
https://download-software.intel.com/sites/landingpage/android/extra_intel_haxm-windows_r02.zip
https://download-software.intel.com/sites/landingpage/android/extra_intel_haxm-macosx_r02.zip
https://dl-ssl.google.com/android/repository/extras/intel/haxm-windows_r03.zip
https://dl-ssl.google.com/android/repository/extras/intel/haxm-macosx_r03.zip

(11)add-ons (google手机api,释放到android-sdk-windows/add-ons/)
addon-google_apis-google-xx[xx对应api版本数字]
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/google_apis-9_r02.zip
https://dl-ssl.google.com/android/repository/google_apis-10_r02.zip
https://dl-ssl.google.com/android/repository/google_apis-11_r01.zip
https://dl-ssl.google.com/android/repository/google_apis-12_r01.zip
https://dl-ssl.google.com/android/repository/google_apis-13_r01.zip
https://dl-ssl.google.com/android/repository/google_apis-14_r02.zip
https://dl-ssl.google.com/android/repository/google_apis-15_r02.zip
https://dl-ssl.google.com/android/repository/google_apis-16_r03.zip
https://dl-ssl.google.com/android/repository/google_apis-17_r03.zip
https://dl-ssl.google.com/android/repository/google_apis-18_r03.zip
https://dl-ssl.google.com/android/repository/google_apis-19_r01.zip

https://dl-ssl.google.com/android/repository/google_tv-12_r02.zip
https://dl-ssl.google.com/android/repository/google_tv-13_r01.zip

addon-intel_atom_x86_system_image-intel_corporation-xx
https://software.intel.com/sites/landingpage/android/addon_intel_sysimg_2.3.7_api-10.zip
addon-dual_screen_apis-kyocera_corporation-xx (Dual Screen api)
http://dl.kyocera-wireless.com/echobykyocera.com/ECHO-SDK-v1-03.zip
http://dl.kyocera-wireless.com/echobykyocera.com/ECHO-SDK-v2-00.zip
addon-sony_xperia_extensions_edk_2_0-sony_mobile_communications_ab-xx
http://dl-developer.sonymobile.com/edk/android/edk_2.0_ver2.zip
addon-real3d-lge-xx
http://developer.lgmobile.com/sdk/android/Real3D_addon_api-8_r01.zip
http://developer.lgmobile.com/sdk/android/Real3D_SDK_api-10_r02.zip
http://developer.lgmobile.com/sdk/android/Real3D_SDK_api-14_r01.zip
addon-htc_opensense_sdk-htc-15
http://dl.htcdev.com/sdk/zip/htc_opensense_sdk.zip
addon-htc_opensense_apis-16
http://dl.htcdev.com/sdk/zip/htc_opensense_apis.zip

说明: 以上第(3)点及以后,可以将安装包放在文件夹android-sdk-windows/temp下,通过SDK Manager自动安装释放到相应位置.

(12)ADT Plugin for Eclipse
http://dl.google.com/android/ADT-22.2.1.zip
http://dl.google.com/android/ADT-22.3.0.zip

(13)Android Developer Tools(基于Eclipse的Android开发环境,已包含Eclipse与ADT).
revision 22.2.1
http://dl.google.com/android/adt/adt-bundle-windows-x86-20130917.zip
http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20130917.zip
http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20130917.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86-20130917.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130917.zip
revision 22.3
http://dl.google.com/android/adt/adt-bundle-windows-x86-20131030.zip
http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20131030.zip
http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20131030.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip
http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip

(14)Android NDK
revision 9b
http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86.zip
http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86-legacy-toolchains.zip
http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64.zip
http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64-legacy-toolchains.zip
http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86-legacy-toolchains.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64-legacy-toolchains.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86-legacy-toolchains.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2

Android SDK 官方下载页面
http://developer.android.com/sdk/index.html

Android Open Source
https://android.googlesource.com/
https://developers.google.com/android/nexus/images

  1. 使用迅雷等P2P下载工具,复制获得的更新包下载地址进行下载。基于P2P工具共享下载原理,在你的网络畅通之前提下,下载速度会很快。
  2. 在android sdk安装目录下查找Temp文件夹<如android-sdk-linux-x86/temp>,如果没有请创建。然后将下载所得的离线包放到Temp文件夹下(因为正常更新时会将更新包下载至这里)。

  3. 以正常方式进行更新,你将会发现,它开始跳过Downloading 直接进行Installing了。

方法二:设置host,强制从google北京数据中心访问下载

配置host信息如下

#google_android_androidnet.cn
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
74.125.237.1 dl-ssl.google.com

 

点赞 (0)
  1. yyg说道:
    Google Chrome 45.0.2454.101 Google Chrome 45.0.2454.101 Windows 10 x64 Edition Windows 10 x64 Edition

    这个方法很有用。安装了Android SDK Manager后完全不能更新,也更改了host文件,还是连不上服务器。这个离线更新的办法解决了大问题。

  2. 说道:

    谢谢大大分享

  3. LouisHan说道:

    我是在线安装的,不过4M的电信宽带还是很给力的

发表评论

电子邮件地址不会被公开。 必填项已用*标注