Setup android ubuntu develope enviroment1. Prepare1.1 Hardware environment prepare:I suggest that the computer has:
CPU: Intel core2 E serials / AMD Phenom II X2 serials
Memory: 2GB
HardDisk: 50GIf you install the operating system with an virtual machine, I suggest the computer should have:
   CPU: Intel core2 Q serials / AMD Phenom II X4 serials
   Memory: 4GB
   HardDisk: 200GB
Then the virtual machine should have:
   CPU: Dual-core processors
   Memory: 2GB
   HardDisk: 50GBMake sure you computer connect with internet.1.2 Download:Ubuntu operating system:
You can switch which version you like by this link:
http://mirror.mcs.anl.gov/pub/ubuntu-iso/DVDs/ubuntu/Notice:
a. Google suggest you use version 8.04, so your choosed version should newer than 8.04.
b. I preferred use 9.04.1.3 Burn CD/DVD
Burn the ubuntu operating system.
2. Install2.1 Setup ubuntu system:
Insert the prepared CD/DVD. Setup ubuntu follow the setup steps.2.2 Setup user environment:a. confirm the network.open a terminal, type:
$ ifconfigMake sure your machine has been allocated a address. Otherwise, you should allocate the address
by yourself. Type in the terminal:
$ sudo gedit /etc/network/interfacesIf your NIC is eth0, static IP address style is:
auto eth0
iface eth0 inet static
address 10.0.1.100
netmask 255.255.255.0
gateway 10.0.1.1If your NIC is eth0, dynamic IP address style is:
auto eth0
iface eth0 inet dhcpSave the file and exit, then type in the terminal:
$ sudo /etc/init.d/networking restartIf you use a network agent, you have to modify the bash file, type in the terminal: 
$ sudo gedit /etc/bash.bashrcAppend these text to this file:export http_proxy="http://10.0.0.1:1000@username:password"Save the file and exit, then restart the computer.b. update the source list.open a terminal, type:
$ sudo gedit /etc/apt/sources.listYou should modify the content in the file. Usually, it needs more source.
Search your need under, and paste them to your source list file. If your ubuntu version is higher than 9.04, you should add
9.04 source list to your source list also. Because 9.04 or lower version has jdk 5 source.
Then save it, type in the terminal:
$ sudo apt-get update
This process will cost some time, you can a rest.

解决方案 »

  1.   

    c. setup android build environmentType in the terminal, if you install 32-bit version:
    $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
    $ sudo update-java-alternatives -s java-1.5.0-sun if you install 64-bit version:
    $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
    $ sudo update-java-alternatives -s java-1.5.0-sun 
    $ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.sod. setup android application develope environmentDownload the softwares:
    Eclipse(32-bit): http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk.tar.gz
    Eclipse(64-bit): http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk-x86_64.tar.gz
    ADT: http://dl.google.com/android/ADT-8.0.1.zip
    Android SDK for linux: http://dl.google.com/android/android-sdk_r08-linux_86.tgzd1. Unpackage the ecplise and android sdk, then open the ecplise.
    d2. Click Help->Install new softwares...->Add...->Archive...->select the adt path->press next until finish.
    d3. Click Window->Preferrences->Android->Browser...->select the android sdk path->press apply->press ok.
    d4. Click Window->Preferrences->Android SDK and AVD manager...->Avaliable packages->select Android Repository->select all->Install selected->press next until finish.Notice:
    If you use network agent, you should add this to eclipse.
    Click Window->Preferrences->General->Network Connections->Add your agent here.
      

  2.   

    Source list太长了,贴不下了,给出几个网址上面有各个版本的源地址:
    Referred:
    1. http://blog.163.com/luopengqi2007/blog/static/30475125200851602032463/
    2. http://blog.163.com/warking_xp/blog/static/10391032009217103724314/
    3. http://hi.baidu.com/wangyantsing/blog/item/ed6cac517d8c4e878c543095.html
    4. http://blog.csdn.net/unetman/archive/2009/11/03/4761136.aspx
    5. http://blog.163.com/otrewyi191@126/blog/static/636821292010111611829942/
    6. http://blog.163.com/elsila/blog/static/17319715820109220525604/
    PS:
    d. setup android application develope environment通用于linux以及windows上面,只不过软件的版本要换成对应平台上面的。
      

  3.   

    支持,装了很长时间的ubuntu了,一直在哪放着没用,还什么都没配置呢
    正好用上。
    多谢!
      

  4.   

    多谢斑竹!
    ubuntu装了很长时间了,一直没用,还什么都没配置呢!
    正好派上用场!
      

  5.   

    笔记本自从装好ubuntu,然后电信那就欠费了,直到现在本子就都没开机过,正好来做android