- JDK安裝,JRE安裝.
- 相關軟體下載.
- Eclipse IDE:http://www.eclipse.org/downloads/
- Android SDK:http://developer.android.com/sdk
- Android Development Tools plugin:eclipse線上安裝.
3. 安裝Android SDK
- 將下載的檔案android-sdk_r11-linux_x86.tgz解壓縮到/opt/androidSDK目錄
- sudo gedit /etc/environment
- PATH=$PATH:/opt/androidSDK/tools
4. 安裝Eclipse IDE和Android Development Tools plugin
- sudo apt-get install eclipse,啟動eclipse.
- 選擇Help > Software Updates....,進入Available Software標籤,點擊Add Site...按鈕後,輸入 https://dl-ssl.google.com/android/eclipse/
- 提示錯誤資訊:
Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) Missing requirement: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) requires 'org.eclipse.gef 0.0.0' but it could not be found
- 開啟eclipse:windows->preferences->Install/Update->Avai..., 選中或添加以下兩個網址:
- GEF Update Site : http://download.eclipse.org/tools/gef/updates/releases
- galileo : http://download.eclipse.org/releases/galileo
- 進入help->Install new software,先選擇GEF進行升級,(應該只升級對應版本即可)
- 再升級WST,這個在galileo的最後面。
5. 配置eclipse
- 選擇Window > Preferences...開啟Preferences視窗,在左邊選擇Android,在SDK Location處點擊Browse按鈕後,選擇Adroid SDK的安裝地址後,點OK完成設定。