android 源码编译

参考:http://www.cnblogs.com/hoji-real/articles/2144892.html

 

问题1:python2.5不能正确安装。

解决:去掉2.5版本号 $sudo apt-get install python

 

问题2:sun-java6-jdk不能正确安装。

解决:添加软件源,更新后安装。

http://blog.chinaunix.net/uid-11114210-id-3179583.html

1、添加这个源:

deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse。

方法:

sudo gedit /etc/apt/sources.list
打开源列表,在最后一行添加

deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse。保存退出。

2、sudo apt-get update
3、sudo apt-get install sun-java6-jdk

中途会弹出两个框,选确定。

 

。。。。

在宏基4750G上编译失败,出错原因google是内存不够,但宏基4750G的内存2G啊?

 

虚拟机3G内存编译成功

在虚拟机下,分3G内存,100G硬盘,中间出了几个错,照下面的参考修改编译,最后编译成

功。(SDK没有编译)

http://blog.csdn.net/luoshengyang/article/details/6559955

注意环境变量的设置

在/etc/profile中添加

PATH=$PATH:~/Android/out/host/linux-x86/bin

export ANDROID_PRODUCT_OUT=~/Android/out/target/product/generic

然后source /etc/profile

posted @ 2012-10-08 14:40  helloweworld  阅读(176)  评论(0编辑  收藏  举报