Android ubuntu 开发环境安装

yyy025025025 2011-01-09 06:31:20
Setup android ubuntu develope enviroment

1. Prepare

1.1 Hardware environment prepare:

I suggest that the computer has:
CPU: Intel core2 E serials / AMD Phenom II X2 serials
Memory: 2GB
HardDisk: 50G

If 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: 50GB

Make 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. Install

2.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:
$ ifconfig

Make sure your machine has been allocated a address. Otherwise, you should allocate the address
by yourself. Type in the terminal:
$ sudo gedit /etc/network/interfaces

If 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.1

If your NIC is eth0, dynamic IP address style is:
auto eth0
iface eth0 inet dhcp

Save the file and exit, then type in the terminal:
$ sudo /etc/init.d/networking restart

If you use a network agent, you have to modify the bash file, type in the terminal:
$ sudo gedit /etc/bash.bashrc

Append 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.list

You 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.
...全文
380 23 打赏 收藏 转发到动态 举报
写回复
用AI写文章
23 条回复
切换为时间正序
请发表友善的回复…
发表回复
Lee0929 2011-01-14
  • 打赏
  • 举报
回复
干嘛要用英文。。。
Dartagnan 2011-01-14
  • 打赏
  • 举报
回复
这个必须要顶,正准备这周编译源码,先行谢过!
yihua0607 2011-01-13
  • 打赏
  • 举报
回复
之前搞这个花了很长时间
ayuppie 2011-01-13
  • 打赏
  • 举报
回复
谢谢楼主,
shally131 2011-01-12
  • 打赏
  • 举报
回复
笔记本自从装好ubuntu,然后电信那就欠费了,直到现在本子就都没开机过,正好来做android
yuekejun 2011-01-12
  • 打赏
  • 举报
回复
直接下载需要的安装包,后面再更新一点也是可以的……
yui 2011-01-11
  • 打赏
  • 举报
回复
多谢指点
weerweer 2011-01-11
  • 打赏
  • 举报
回复
这个神马意思,散分么?
line_us 2011-01-11
  • 打赏
  • 举报
回复
详尽!!!!!
支持
ameyume 2011-01-11
  • 打赏
  • 举报
回复
多谢斑竹!
ubuntu装了很长时间了,一直没用,还什么都没配置呢!
正好派上用场!
ameyume 2011-01-11
  • 打赏
  • 举报
回复
支持,装了很长时间的ubuntu了,一直在哪放着没用,还什么都没配置呢
正好用上。
多谢!
yihua0001 2011-01-10
  • 打赏
  • 举报
回复
好东西,支持一下。
yyy025025025 2011-01-09
  • 打赏
  • 举报
回复
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上面,只不过软件的版本要换成对应平台上面的。
yyy025025025 2011-01-09
  • 打赏
  • 举报
回复
c. setup android build environment

Type 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.so

d. setup android application develope environment

Download 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.tgz

d1. 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.

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧