1. 下載JDK 6(Java Develope Kit)(JAVA開發套件):
http://java.sun.com/
但,實際是進入http://www.oracle.com/technetwork/java/javase/downloads/index.html下載Java SE 6 Update 24(按Download JDK)
載回來的檔案為jdk-6u24-windows-1586.exe,執行它
2. 下載Eclipse(整合開發環境):
http://www.eclipse.org/downloads/
選擇下載Eclipse IDE for Java Developers(Windows 32bit)
載回來的檔案為eclipse-java-helios-SR2-win32.zip,將它解壓縮,出現的資料夾Eclipse搬移至自己想要的位置(如,D:\Eclipse),它是個不必安裝便可執行的資料夾
3. 安裝Eclipse:
執行Eclipse.exe,第一次執行時會出現對話框來決定預設的工作目錄(如,D:\d-Eclipse\WorkSpace),執行進入後先不動
4. 安裝Android開發工具擴充套件(ADT)(Android Develope Tool):
主選單上,Help -> Install New Software...
Work With: 輸入 http://dl-ssl.google.com/android/eclipse/site.xml
按下Add...
在彈出Add Site對話框的Name欄位中, 輸入希望的名稱(如:ADT),然後按下OK鍵,這裡會等一段時間,
然後,下方列表會出現Developer Tools,之後,勾選它,按Next,...,最後按下Finish,會自動開始安裝ADT套件,會花一段時間,
安裝完會提示需重新啟動Eclipse,按Yes鍵重新啟動
5. 下載Android軟體開發套件(SDK)(Software Development Kit):
http://developer.android.com/sdk/index.html
下載android-sdk_r10-windows.zip,然後解壓縮,
出現的android-sdk-windows目錄,改名為android_sdk,並將其移至Eclipse資料夾內
6. 設定Android SDK:
主選單Window->Preferences,選Android,並在SDK Location中以Browse找到android_sdk資料夾,之後按右下方Apply
此處實際是無效的,已改為到android_sdk資料夾中去執行SDK Manager.exe,會花一段時間
7. 下載Android Developement Tools(開發工具套件):
http://developer.android.com/guide/developing/tools/adt.html
實際則是導入http://developer.android.com/sdk/eclipse-adt.html,裡頭介紹的安裝法為:
1.Start Eclipse, then select Help > Install New Software....
2.Click Add, in the top-right corner.
3.In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
Click OK....這裡要等待下方Rending變成Developer Tools
4.In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
5.In the next window, you'll see a list of the tools to be downloaded. Click Next.
6.Read and accept the license agreements, then click Finish.
7.When the installation completes, restart Eclipse.
實際上,自第5項開始就出錯了,告知已安裝過,故,可能先前的SDK Manager.exe已經處理過了
Android教學(孫傳雄談科技)-Android教學課程懶人包:
http://blog.chinatimes.com/tomsun/archive/2007/11/03/213763.html