2010年9月26日 星期日

環境建立

【前言】
android手機程式開發教學課程免費講義1
android手機程式開發教學課程免費講義2
android手機程式開發教學課程免費講義3
android手機程式開發教學課程免費講義4

【系統需求】
● Supported Operating Systems
    – Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit) ● Supported Development Environments
    – Eclipse 3.4 (Ganymede) or 3.5 (Galileo)
Other development environments or IDEs
    – JDK 6
    – Apache Ant 1.6.5 or later

ⓞReference
 System Requirements

【安裝步驟】
0.安裝JDK 6
1.下載 Eclipse
2.執行 Eclipse,安裝 ADT 擴充套件
4.安裝 ADT 擴充套件
5.下載 Android SDK
6.在Eclipse設定 Android SDK

 ⓞReference
Installing the SDK

【環境建立】
-----for windows
一.下載且安裝 java JDK,需注意JAVA版本需大於1.5版 (命令行上輸入 java -version 來查看java版本) 。
   –安裝完之後可以java online account,有以下的好處:
   After you register your JDK, you will receive these benefits:
      •Notification of new versions, patches, and updates
      •Special offers on developer products, services and training
      •Access to early releases and documentation
      •Ability to track and manage your registered products and systems on our inventory site
  
  –建立環境變數:On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

二. 下載 Eclipse 且直接執行即可:Eclipse 是一個開發工具平台。注意選擇的版本需包含 JDT (Java Development Tool Plugin),可以下載 3.6版 (Helios)、3.5版 (Galileo)。

三.下載ADT(Android Development Tools Plugin):Android 開發工具擴充套件
 ⓞ Reference
 Downloading the ADT Plugin

四.下載 Android SDK:Android 程式開發套件。
ⓞReference
Download the Android SDK

五.在Eclipse設定Android SDK:Preference→選擇 Android 標籤→在 SDK Location 欄位按下 " Browse..."鍵→選擇剛剛解壓縮完的「android_sdk」檔案夾所在地→按(Apply) 按鈕。

六.下載 SDK 組件:Window →選擇「 Android SDK and AVD Manager」選項,開啟 Android SDK/AVD 管理工具。
   –  Installed Packages :已安裝 android SDK Tools。
   –  Available Packages:可安裝的SDK組件。    
ⓞReference
Adding SDK Components

P.S. New platforms are automatically saved into the /platforms/ directory of your SDK; new add-ons are saved in the /add-ons/ directory; samples are saved in the /samples/android-/; and new documentation is saved in the existing /docs/ directory (old docs are replaced).

註:需要自動編譯的話,環境上則需要 Apache Ant 1.7 或之後版本。
Ⓞ Reference
wiki
Android SDK Starter Package

沒有留言:

張貼留言