Ubuntu10.04 Android開發環境搭建

來源:互聯網
上載者:User
  1. JDK安裝,JRE安裝.
  2. 相關軟體下載.
  • 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完成設定。

      聯繫我們

      該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

      如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

      A Free Trial That Lets You Build Big!

      Start building with 50+ products and up to 12 months usage for Elastic Compute Service

      • Sales Support

        1 on 1 presale consultation

      • After-Sales Support

        24/7 Technical Support 6 Free Tickets per Quarter Faster Response

      • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.