5. 根据你网速的情况,下载安装的时间或长或短,请耐心等待。
手动下载步骤如下:
1. 通过分析Android下载器的
http://dl-ssl.google.com/android/repository/repository.xml 内容,可以得到如下下载列表(以Windows环境为例):
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-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_r02-windows.zip http://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip http://dl-ssl.google.com/android/repository/android-3.0_pre_r01-linux.zip http://dl-ssl.google.com/android/repository/platform-tools_r02-windows.zip http://dl-ssl.google.com/android/repository/tools_r09-windows.zip
http://dl-ssl.google.com/android/repository/docs-Honeycomb_pre_r01-linux.zip http://dl-ssl.google.com/android/repository/samples-Honeycomb_pre_r01-linux.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/samples-2.3_r01-linux.zip
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.zip platforms\\android-5 android-2.0.1_r01-windows.zip platforms\\android-6
6
android-2.1_r02-windows.zip android-2.2_r02-windows.zip android-2.3.1_r02-linux.zip android-3.0_pre_r01-linux.zip platform-tools_r02-windows.zip tools_r09-windows.zip
docs-Honeycomb_pre_r01-linux.zip samples-Honeycomb_pre_r01-linux.zip samples-2.1_r01-linux.zip samples-2.2_r01-linux.zip samples-2.3_r01-linux.zip
platforms\\android-7 platforms\\android-8 platforms\\android-9 platforms\\android-10 platforms-tools tools doc
samples\\android-10 samples\\android-7 samples\\android-8 samples\\android-9
3. 如果要安装google api,请分析下图中的地址:
http://dl-ssl.google.com/android/repository/addon.xml 下载自己需要的Packages进行解压,方法同1、2
下载列表为:
http://dl-ssl.google.com/android/repository/google_apis-3-r03.zip http://dl-ssl.google.com/android/repository/google_apis-4_r02.zip
7
no Pain no Gain no Gavin 博客同步更新至:http://blog.sina.com.cn/deaboway http://blog.csdn.net/deaboway
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 http://dl-ssl.google.com/android/repository/google_apis-9_r02.zip http://dl-ssl.google.com/android/repository/market_licensing-r01.zip http://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip
4. 映射关系为:
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_r02.zip add-ons\\addon_google_apis_google_inc_8 google_apis-9_r02.zip add-ons\\addon_google_apis_google_inc_9 market_licensing-r01.zip google-market_licensing usb_driver_r04-windows.zip usb_driver
5. 具体的目录结构如下图:
8
no Pain no Gain no Gavin 博客同步更新至:http://blog.sina.com.cn/deaboway http://blog.csdn.net/deaboway
9
no Pain no Gain no Gavin 博客同步更新至:http://blog.sina.com.cn/deaboway http://blog.csdn.net/deaboway
四、 Eclipse集成开发环境(IDE)搭建
现在开始Eclipse IDE及Android Eclipse plugin的安装和配置,这里使用的Eclipse版本为,eclipse-java-helios-SR1-win32.zip,请自行到Eclipse官方网站(http://eclipse.org)上下载自己喜欢的版本,建议3.4以上版本。
我们使用的Android Eclipse Plugin是ADT:Android Development Tools。同Android SDK一样,分为在线安装和手动安装两种方式。 在线安装步骤如下:
1. 打开Eclipse,选择菜单:Help->Install New Software...
10