最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】下载Android的Eclipse+ADT的platforms和system image文件

Android crifan 8953浏览 0评论

【背景】

折腾:

【已解决】导入Android项目后编译出错:Unable to resolve target ‘android-19′

期间,需要下载android-19的system-images。

以及:

【已解决】Android项目编译出错:The import android.provider.DocumentsContract cannot be resolved

【已解决】Android项目编译出错:KITKAT cannot be resolved or is not a field

需要下载对应的platforms下面的文件。

【折腾过程】

1.ADT中Android SDK Manager中无法下载,所以去添加代理:

Tools->Options

android sdk manager tools options

http proxy server and ports of android download

结果还是无法下载:

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: NoHttpResponse The target server failed to respond
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection to https://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: NoHttpResponse The target server failed to respond
Done loading packages.

然后通过已有的Android的Eclipse+ADT中去下载或更新,结果都连不上,下载失败:

dl-ssl google com android eclipse update also fail

2.搜到一堆:

Download Android SDK standalone for offline installation | Quakeboy’z Dev Arena

Installing android SDK in eclipse offline – Stack Overflow

How to install older Android SDK in Eclipse – Stack Overflow

而此刻发现:

Android官网链接:

https://developer.android.com/sdk/

http://developer.android.com/tools/help/sdk-manager.html

等等,都打不开了,即使是翻墙也打不开。

3.搜:

Android ADT离线下载

参考:

Android ADT 离线下载技巧(告别在线安装的麻烦) – 蔡熙伟的空间 – 开源中国社区

eclipse – installing android offline is hard[obsolete] – Stack Overflow

只是找了一堆关于ADT的离线下载,好像没看懂,暂时好像不需要。

 

Download Android SDK standalone for offline installation | Quakeboy’z Dev Arena

->

https://dl-ssl.google.com/android/repository/repository-10.xml

但是也是用不上。

4.搜:

android eclipse system-images download

参考:

Android应用开发相关下载资源(2015/05/06更新) – 平凡的世界 – 博客频道 – CSDN.NET

发现很有用,找到所需要的,去下载:

http://dl.google.com/android/android-sdk_r23.0.2-windows.zip

 

去下载所需要的android-19的system-images:

system-images/android-19

http://dl-ssl.google.com/android/repository/sysimg_armv7a-19_r02.zip

http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-19_r02.zip

 

以及顺带下载adt-bundle:

revision 23.0.2

http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

 

另外这里也有镜像:

Android SDK 国内镜像站点(大连东软信息学院)

 

【总结】

在Android官网(有问题,即使翻墙也)无法打开的情况下,想要下载Android的相关开发资源,

可以参考国人总结的:

Android应用开发相关下载资源(2015/05/06更新) – 平凡的世界 – 博客频道 – CSDN.NET

中提到的对应的链接。

直接下载即可。

以及也可以去一些国内的镜像中去看看:

Android SDK 国内镜像站点(大连东软信息学院)

下载所需文件,下载后解压到对应文件夹即可。

 

比如:

(1)下载后,直接解压到当前文件夹即可的,放在

adt-bundle-windows\sdk\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_r04.zip
Android 4.0.3 (API 15):
https://dl-ssl.google.com/android/repository/android-15_r05.zip
Android 4.1.2 (API 16):
https://dl-ssl.google.com/android/repository/android-16_r05.zip
Android 4.2.2 (API 17):
https://dl-ssl.google.com/android/repository/android-17_r03.zip
Android 4.3 (API 18):
https://dl-ssl.google.com/android/repository/android-18_r03.zip
Android 4.4.2 (API 19):
https://dl-ssl.google.com/android/repository/android-19_r04.zip
Android 4.4W (API 20):
https://dl-ssl.google.com/android/repository/android-20_r02.zip
Android L (API 20, L Preview):
https://dl-ssl.google.com/android/repository/android-L_r04.zip
Android 5.0.1 (API 21):
https://dl-ssl.google.com/android/repository/android-21_r02.zip
Android 5.1 (API 22):
https://dl-ssl.google.com/android/repository/android-22_r02.zip

 

(2)下载后,解压到对应的:

adt-bundle-windows\sdk\system-images

文件夹下即可

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_r02.zip
http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-19_r02.zip
system-images/android-20/android-wear
https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sysimg-1077298.zip
https://dl-ssl.google.com/android/repository/sys-img/android-wear/sysimg_wear_arm-20_r04.zip
https://dl-ssl.google.com/android/repository/sys-img/android-wear/sysimg_wear_x86-20_r04.zip
system-images/android-L
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-L_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_arm-L_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-L_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86_64-L_r01.zip
system-images/android-L/android-tv
https://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_tv_arm-L_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_tv_x86-L_r02.zip
system-images/android-21
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_x86-21_r03.zip
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-tv/sysimg_atv_arm-21_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_x86-21_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android-wear/sysimg_wear_arm-21_r03.zip
https://dl-ssl.google.com/android/repository/sys-img/android-wear/sysimg_wear_x86-21_r03.zip
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_x86-21_r05.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86_64-21_r05.zip
system-images/android-22
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_arm-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86_64-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_arm-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_x86-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_arm-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86-22_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86_64-22_r01.zip

 

目前此处主要用到就是上面这两部分的,效果如下:

(1)android\adt-bundle-windows\sdk\platforms

android adt-bundle-windows sdk platforms from 4.0.3 to L

 

(2)android\adt-bundle-windows\sdk\system-images

android adt-bundle-windows sdk system-images from 16 to 19

 

其他文件,根据自己需要去下载即可。

转载请注明:在路上 » 【已解决】下载Android的Eclipse+ADT的platforms和system image文件

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
155 queries in 0.254 seconds, using 22.30MB memory