先分别下载所需包,再安装。
一,首先下载SDK的安装包,android-sdk_r06-windows.zip(安装工具)解压到目录,如我的目录D:\programs\android-sdk-windows
二,然后新建以下 几个文件夹
- platforms,docs,samples,usb_driver,market_licensing
三,删除tools全部内容
这一步是可选的,因为tools内容可能已经过时,也可能仍然可用。
四,打开下载工具(迅雷,电驴等等),下载以下内容
谷歌api的安装包
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
Android开发包
http://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zip
http://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip
http://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip
http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
http://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip
http://dl-ssl.google.com/android/repository/android-2.1_r02-windows.zip
http://dl-ssl.google.com/android/repository/android-2.2_r02-windows.zip 许可证
http://dl-ssl.google.com/android/repository/market_licensing-r01.zip
工具
http://dl-ssl.google.com/android/repository/tools_r07-windows.zip
文档
http://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip
样例
http://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip
http://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip
USB驱动
http://dl-ssl.google.com/android/repository/usb_driver_r03-
windows.zip
每个包都在60M左右,迅雷速度很快,本人的教育网,十分钟就搞定了所有下载。
如果是Linux平台的朋友,请把windows统一改为linux即可,mac平台的朋友改为macosx即可。
需要说明的是,文档和样例都是同样的地址
- docs-2.2_r01-linux.zip,samples-2.2_r01-linux.zip,samples-2.1_r01-linux.zip
#p#
五,解压文档到指定目录
把android开头的文件解压到platforms目录下
把goole_apis开头的文件解压到add-ons目录下
把market_licensing-r01.zip解压到market_licensing目录下
把tools_r07-windows.zip解压到tools目录下(前面清空了该文件夹)
把docs-2.2_r01-linux.zip解压到docs
把samples-2.2_r01-linux.zip和samples-2.1_r01-linux.zip解压到samples目录下
把usb_driver_r03-windows.zip解压到usb_driver目录下。
基本上安装工作就完成了。
再打开SDK Setup.ext发现,它会找到我们已经安装的内容。
不过,可以也会有内容要更新或者安装,因为你看到该文章时,有可能已经有了更新的内容。
然后,将你的安装目录/tools加到系统环境变量,把安装目录加到Android_Home。就完成了整个安装。
--------------------------------------------
关于离线安装
可以看到,sdk的安装还是很简单方便的,但是有个问题。就是用这个更新的时候
速度很忙。更要等很久。所以我们可以直接把那些包下载下来安装。
地址就是
- https://dl-ssl.google.com/androi ... 2.0_r01-windows.zip
- https://dl-ssl.google.com/androi ... 2.1_r01-windows.zip
- https://dl-ssl.google.com/androi ... -1.1_r1-windows.zip
- https://dl-ssl.google.com/androi ... 1.5_r03-windows.zip
- https://dl-ssl.google.com/androi ... 1.6_r02-windows.zip
- https://dl-ssl.google.com/androi ... ver_r03-windows.zip
- https://dl-ssl.google.com/androi ... ogle_apis-6_r01.zip
- https://dl-ssl.google.com/androi ... ogle_apis-5_r01.zip
- https://dl-ssl.google.com/androi ... ogle_apis-4_r02.zip
- https://dl-ssl.google.com/androi ... ogle_apis-7_r01.zip
#p#
下完之后,名字以android的,解压到platforms里面
以google_apis开头的,解压到addons里面
usb驱动的,直接解压到根目录
这样,就完成了sdk的下载。
补充:离线安装2
1)这些文件都是我根据SDK下载器的更新文件
http://dl-ssl.google.com/android/repository/repository.xml
http://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip
http://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip
http://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip
http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
http://dl-ssl.google.com/android/repository/android-2.1_r02-windows.zip
http://dl-ssl.google.com/android/repository/android-2.2_r01-windows.zip
http://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip
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_r01.zip
http://dl-ssl.google.com/android/repository/jboss-5.1.0.GA.zip
http://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip
http://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip
http://dl-ssl.google.com/android/repository/tools_r06-windows.zip
http://dl-ssl.google.com/android/repository/usb_driver_r03-windows.zip
#p#
2) 下载完后,按下面的映射关系解压文件
前面是你下载的文件,箭头后面是你解压到的SDK下载器所在目录下的目录
android-1.5_r04-windows.zip==>platforms\android-3
android-1.6_r03-windows.zip==>platforms\android-4
android-2.0_r01-windows.zipp==>platforms\android-5
android-2.0.1_r01-windows.zip==>platforms\android-6
android-2.1_r02-windows.zip==>platforms\android-7
android-2.2_r01-windows.zip==>platforms\android-8
google_apis-3-r03.zip==>add-ons\addon_google_apis_google_inc_3
google_apis-4_r02.zip==>add-ons\addon_google_apis_google_inc_4
google_apis-5_r01.zip==>add-ons\addon_google_apis_google_inc_5
google_apis-6_r01.zip==>add-ons\addon_google_apis_google_inc_6
google_apis-7_r01.zip==>add-ons\addon_google_apis_google_inc_7
google_apis-8_r01.zip==>add-ons\addon_google_apis_google_inc_8
docs-2.2_r01-linux.zip==>doc
samples-2.1_r01-linux.zip==>samples\android-7
samples-2.2_r01-linux.zip==>samples\android-7
tools_r06-windows.zip==>tools
usb_driver_r03-windows.zip==>usb_driver
android 2.3 离线安装包下载·
https://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip
http://dl-ssl.google.com/android/repository/google_apis-9_r01.zip
https://dl-ssl.google.com/android/repository/docs-2.3_r01-linux.zip
https://dl-ssl.google.com/android/repository/samples-2.3_r01-linux.zip
https://dl-ssl.google.com/android/repository/android-2.3_r01-linux.zip
https://dl-ssl.google.com/android/repository/platform-tools_r01-windows.zip
http://dl.google.com/android/ADT-8.0.0.zip
http://dl.google.com/android/android-sdk_r08-windows.zip
http://dl.google.com/android/installer_r08-windows.exe
http://dl-ssl.google.com/android/repository/market_licensing-r01.zip
(需要哪些包可以通过http://dl-ssl.google.com/android/repository/repository.xml分析得到)下载下来(打开迅雷,当你复制以下地址,迅雷就检测并下载),下载完后,按下面的映射关系解压文件.
USB驱动
usb_driver">https://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip==>usb_driver;
add-ons/addon_google_apis_google_inc_9">http://dl-ssl.google.com/android/repository/google_apis-9_r01.zip==>add-ons\addon_google_apis_google_inc_9;
文档doc
https://dl-ssl.google.com/android/repository/docs-2.3_r01-linux.zip==>docs;
样例
samples/android-9">https://dl-ssl.google.com/android/repository/samples-2.3_r01-linux.zip==>samples\android-9;
platforms/android-9">https://dl-ssl.google.com/android/repository/android-2.3_r01-linux.zip==>platforms\android-9;
platform-tools">https://dl-ssl.google.com/android/repository/platform-tools_r01-windows.zip==>platform-tools;
工具tool
https://dl-ssl.google.com/android/repository/tools_r08-windows.zip==>tools(可以先清空tools);
许可证market_licensing
http://dl-ssl.google.com/android/repository/market_licensing-r01.zip==>market_licensing;
http://dl.google.com/android/ADT-8.0.0.zip(ADT插件)
http://dl.google.com/android/android-sdk_r08-windows.zip(sdk公共部分)
http://dl.google.com/android/installer_r08-windows.exe(sdk公共部分,同上)
【编辑推荐】