Linux(ubuntu 11.04)環境下Android開發環境配置

來源:互聯網
上載者:User

  1.首先下載開發應用程式所需檔案:

 

jdk-6u24-linux-i586.bin

 

android-sdk_r10-linux_x86.tgz

 

eclipse-java-galileo-SR2-linux-gtk.tar.gz

 

2.安裝jdk

 

     首先添加檔案運行許可權,,然後運行安裝檔案

 

chmod 777 jdk-6u24-linux-i586.bin<br />./jdk-6u24-linux-i586.bin
 

 

接著配置環境變數 在檔案/etc/profile中

 

sudo vim /etc/profile<br />在檔案末尾添加<br />export JAVA_HOME=/home/gexueyuan/jdk1.6.0_24<br />export PATH=$PATH:$JAVA_HOME/bin:/home/gexueyuan/android- sdk-linux_x86/tools:/home/gexueyuan/eclipse<br />export CLASSPATH=.<br />

 

然後在終端運行source 
/
etc
/
profile  使改動馬上生效

 

運行java -version  可以看到java版本  環境變數就配置成功了

 

 

 

 

3.配置安裝android SDK

 

 

將android-sdk_r10-linux_x86.tgz解壓縮,然後運行裡面的檔案夾中的android指令碼,然後可以看到AVD管理器,下載所需要的SDK

版本即可

 

4.配置eclipse

 

  將eclipse-java-galileo-SR2-linux-gtk.tar.gz解壓縮,於是得到eclipse檔案夾,直接運行裡面的eclipse程式就能啟動eclipse,然後選擇

Help--》Install New Software,在work with地址欄中輸入https://dl-ssl.google.com/android/eclipse/  進行adt外掛程式的安裝,一路next,adt

就可安裝成功,此時可以啟動eclipse,在工具列上就能看到android的logo。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.