請參見官網:
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.