请参见官网:
http://androidappdocs.appspot.com/sdk/installing.html
1. preparing your development computer
检查系统环境是否满足要求(基本忽略)
2.下载sdk
path 增加 %android_home%/tools
3. eclipse开发环境
eclipse3.5在线安装地址 :
https://dl-ssl.google.com/android/eclipse/
4. 安装 android平台和其它组件
之前下载的包,仅是一个工具包。
The starter package is not a full development environment — it includes only the core SDK Tools, which you can use to download the rest of the SDK components.
我的选择 :android platform、document、samples、google api、martket lience(请注意选择的版本要一致)
Android USB驱动只有Windows才需要安装,作用:Contains driver files that you can install on your Windows computer, so that you can run and debug your applications on an actual device. 可以直接在你的android手机上,进行程序的调试、运行等。linux、mac是不需要安装。
5. hello world
http://developer.android.com/training/basics/firstapp/index.html
6. eclipse查看android源码
http://log4think.com/browsing-android-source-in-eclipse/ 已验证:<sdk-home>/platforms/android-8,建立source文件夹,将源码放入。重启eclipse,即可看到源码。
今天发现,之前的url也不能访问;安装方式也不同,重新整理。
1. 安装sdk
http://developer.android.com/sdk/installing/index.html 下载sdk(windows下竟然是exe)
It includes only the core SDK tools, which you can use to download the rest of the SDK packages, using the Android SDK Manager. To develop an Android app, you also need to download at least one Android platform and the latest SDK Platform-tools。 选择其它组件:tools、选择对应版本api、usb driver(请务必记住:选择使用http,而不是https,tools->options)
2.安装eclipse adt plugin
http://developer.android.com/sdk/installing/installing-adt.html select the checkbox next to Developer Tools and click Next.
config the adt plugin.