Android SDK外网慢速解决方法
Android开发者官网的国内镜像站:wear.techbrood.com
搭建环境的时候,需要连接google的服务器下载开发平台资源.在国内会非常痛苦.又是修改hosts文件,又是设置代理的.现在已经有了更方便的方法.
有好几个同步google服务器SDK镜像的国内镜像站.我们只需要在SDK Manager中设置好该代理服务器及其端口80,就可以正常下载sdk资源,而无需翻那个了。
方法一:使用国内镜像站
中关村镜像站(使用中)
东软信息学院
北京化工大学镜像站
IPv4: ubuntu.buct.edu.cn
IPv4: ubuntu.buct.cn
IPv6: ubuntu.buct6.edu.cn
方法二:变相解决网络问题
实际上,SDK Manager下载资源是这样一个流程:
从google服务器下载列表信息文件Ainf.xml(实际上cache中如步骤5)
根据每一个Abin.xml文件下载其对应资源列表文件Abin.xml(实际上cache中如步骤6)
根据资源文件Abin.xml下载各种资源zip到temp目录
解压安装temp目录下的zip文件(似乎只有解压而已)
sdkinf-1_09388bd5-repository-10_xml(列表信息文件)
sdkbin-1_09388bd5-repository-10_xml(资源列表文件)
按照这样的流程,我们只需要第3步将资源文件复制到temp目录.就可以”离线安装”了. 网络不好的问题可以变相解决.从SDK Manager加载解析的Xml文件中可以获取每一个资源文件的实际下载地址.然后通过网盘、旋风等方式下载到本地。
*******************************《最后更新至:2015-5-5》**************************************
Xml资源列表文件(共10个XML文件):
列表信息文件(platform,platform tools,tools,source,sample,docs )
http://dl.google.com/android/repository/repository-10.xml
常用系统映像列表文件
http://dl.google.com/android/repository/sys-img/android/sys-img.xml
集成Google Api的系统映像列表文件
http://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
android-wear系统映像列表文件
http://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
android-tv系统映像列表文件
http://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
add on列表文件
http://dl.google.com/android/repository/addon.xml
http://dl.google.com/android/repository/extras/intel/addon.xml
http://dl.google.com/android/repository/addons_list-2.xml
http://dl.google.com/android/repository/addon-6.xml
http://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
========================我是一条分割线=============================
详细资源文件链接:
sources文件
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_r02.zip
https://dl-ssl.google.com/android/repository/sources-20_r01.zip
https://dl-ssl.google.com/android/repository/sources-21_r01.zip
https://dl-ssl.google.com/android/repository/sources-22_r01.zip
samples文件
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_r06.zip
https://dl-ssl.google.com/android/repository/samples-20_r03.zip
https://dl-ssl.google.com/android/repository/samples-21_r04.zip
https://dl-ssl.google.com/android/repository/samples-22_r05.zip
platforms文件
https://dl-ssl.google.com/android/repository/android-15_r05.zip
https://dl-ssl.google.com/android/repository/android-16_r05.zip
https://dl-ssl.google.com/android/repository/android-17_r03.zip
https://dl-ssl.google.com/android/repository/android-18_r03.zip
https://dl-ssl.google.com/android/repository/android-19_r04.zip
https://dl-ssl.google.com/android/repository/android-20_r02.zip
https://dl-ssl.google.com/android/repository/android-21_r02.zip
https://dl-ssl.google.com/android/repository/android-22_r02.zip
platform-tools文件
https://dl-ssl.google.com/android/repository/platform-tools_r22-windows.zip
https://dl-ssl.google.com/android/repository/platform-tools_r22-linux.zip
https://dl-ssl.google.com/android/repository/platform-tools_r22-macosx.zip
build-tools文件
https://dl-ssl.google.com/android/repository/build-tools_r22.0.1-windows.zip
https://dl-ssl.google.com/android/repository/build-tools_r22.0.1-linux.zip
https://dl-ssl.google.com/android/repository/build-tools_r22.0.1-macosx.zip
tools文件
http://dl.google.com/android/repository/tools_r24.2-windows.zip
http://dl.google.com/android/repository/tools_r24.2-linux.zip
http://dl.google.com/android/repository/tools_r24.2-macosx.zip
docs文件
https://dl-ssl.google.com/android/repository/docs-22_r01.zip
--------------------------------------系统映像文件----------------------------------------
arm架构系统映像文件
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-15_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-16_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-17_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-18_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-19_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_arm-21_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_arm-22_r01.zip
Inter_x86架构系统映像文件
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-15_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-16_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-17_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-18_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-19_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-21_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-22_r01.zip
Inter_x86_x64架构系统映像文件
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86_64-21_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86_64-22_r01.zip
mips架构系统映像文件
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_mips-15_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_mips-16_r04.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_mips-17_r01.zip
System Image With Google Api
1. System Image armeabi-v7a with Google APIs:
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_arm-21_r05.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_arm-22_r01.zip
2. System Image x86 with Google APIs:
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86-21_r05.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86-22_r01.zip
3. System Image x86_64 with Google APIs:
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86_64-21_r05.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86_64-22_r01.zip
本文出自 “一剑围城” 博客,请务必保留此出处http://weijiancheng.blog.51cto.com/10190955/1642095
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。