从xml中提前android 5.0各种包的下载地址

Android集成开发环境

   Platform                     Package                      Size                 MD5 Checksum

Windows 32-bit  adt-bundle-windows-x86-20140702.zip     370612741 bytes 9d2cf3770edbb49461788164af2331f3
Windows 64-bit  adt-bundle-windows-x86_64-20140702.zip  370763706 bytes bfc3472a12173422ba044182ac466c13
Mac OS X 64-bit adt-bundle-mac-x86_64-20140702.zip      320593642 bytes 24c51a1ad96c5f6d43821d978bf9866d
Linux 32-bit    adt-bundle-linux-x86-20140702.zip       371950735 bytes 5901c898bae4fe95476463a951b68404
Linux 64-bit    adt-bundle-linux-x86_64-20140702.zip    372259418 bytes 18a7c5778f96c0823349d465f58a0a36

https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
https://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

我下载的是:
wget https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip


官网在国内被闭关锁国的伟大的,正确的国家级的防火墙屏蔽了,所以是没法访问的。
所以自己百度一下下载方法。 或者用其他人下载好的。


Android SDK 国内镜像代理


http://mirrors.neusoft.edu.cn/android/repository/

解决国内访问Google服务器的困难:
1.启动 Android SDK Manager ;
2.打开主界面,依次选择「Tools」、「Options...」,弹出『Android SDK Manager - Settings』窗口;
3.在『Android SDK Manager - Settings』窗口中,在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn和80,并且选中「Force https://... sources to be fetched using http://...」复选框;4.设置完成后单击「Close」按钮关闭『Android SDK Manager - Settings』窗口返回到主界面;
5.依次选择「Packages」、「Reload」。


http://wear.techbrood.com/
Android安卓开发官方文档国内镜像 - 踏得网

也可以修改hosts文件,ip地址自己百度一下

提取下载地址的方法

但是通过Android SDK Manager下载实在太慢,可以

查看log, 把xml的的Fetching URL取出来,使用其他下载工具下载。

方法:grep 'Fetching URL'
结果:
Fetching URL: http://dl-ssl.google.com/android/repository/addon-6.xml
Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml
Fetching URL: http://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
Fetching URL: http://dl-ssl.google.com/glass/gdk/addon.xml


因为android 5.0的api level是21,所以查找api-level>21的关键字
grep 'api-level>21' *.xml

然后向下面查找zip的软件包, 然后把Fetching URL中,最后面的文件名替换为这个zip文件名可以了。

以下是我从xml中提取的android 5.0的下载地址

https://dl-ssl.google.com/android/repository/android-21_r01.zip
https://dl-ssl.google.com/android/repository/samples-21_r03.zip
https://dl-ssl.google.com/android/repository/docs-21_r01.zip
https://dl-ssl.google.com/android/repository/sources-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_arm-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86_64-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86-21_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86_64-21_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_arm-21_r02.zip
http://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_x86-21_r01.zip
http://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_arm-21_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-21_r01.zip

sdk tool:
http://dl-ssl.google.com/android/repository/tools_r23.0.5-linux.zip
http://dl-ssl.google.com/android/repository/platform-tools_r21-linux.zip
http://dl-ssl.google.com/android/repository/build-tools_r21.1.1-linux.zip

Extras:
http://dl-ssl.google.com/android/repository/support_r21.0.2.zip

下载后放到adt-bundle-linux-x86_64-20140702/sdk/temp下面, 再在Android SDK Manager中选择这些要安装的包即可,
注意备份,temp在安装后,会自动删除。

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值