编译android2.2
来源:互联网 发布:英语背单词软件 编辑:程序博客网 时间:2024/06/04 23:28
1,硬件配置,物理内存最好2G以上,swap交换分区最好4G,要不编译的过程中java的jvm就太容易崩溃了。可能也和人品有关,我2G内存编java就经常崩溃,同事1G内存编就没问题,要自我批评了。
2,先是硬盘安装ubuntu10.04。有一同事的主板是微星的,带有acpi。键盘和鼠标老是出问题,X界面也假死。在grub的menu.list里加上acpi=off才搞定。安装完,还要加上noacpi acpi=off,不是笔记本关了acpi也没关系了。
3,下载android代码,先是repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo,把manifest.xml文件里的fetch="git://android.git.kernel.org/" 改为fetch="http://android.git.kernel.org/",网络条件不好的也不会出问题了。repo sync的同时,再加上
repo sync prebuilt,因为prebuilt 太慢了,可以多开一线程下载。
4,编译android2.2(froyo),最好用java-1.5.0-sun。虽然通过修改可以用java-6-sun来编译,但是编译选项加上“TARGET_BUILD_VARIANT=tests“的话,就会出很多问题。对初学者来说还是加上test为好。而且要想把android的源码集成到eclipse,没加tests就会没办法编译调试代码。
5,android的版本也很有趣的,1.5(Cupcake) ,1.6(Donut) ,2.0/2.0.1/2.1(Eclair), 2.2(Froyo),3.0(Gingerbread), 3.5(Honercomb)。google公司的人都太能吃了,不过他们蛮会自得其乐。
6,编译好的sdk和eclipse集成时,注意eclipse版本最高只能是3.5.2,用eclipse3.6时,ADT-0.9.7的很多功能不支持。添加插件 android - https://dl-ssl.google.com/android/eclipse/时,先加galileo - http://download.eclipse.org/releases/galileo/,android插件需要galileo的更新支持。
7,android的网站 http://developer.android.com/连不上,可以用http://androidappdocs.appspot.com/
8,下载内核:git clonegit clone http://android.git.kernel.org/kernel/common.git.
kernel版本已经有android2.6.27到2.6.36。android1.6用kernel2.6.27,android2.1 用kernel2.6.29, android2.2 用kernel2.6.32
- 编译android2.2
- android2.2源码编译
- android2.2源码编译
- android2.2源码编译问题7-4
- Ubuntu 10.10编译Android2.2 froyo 注意事项
- ubuntu 10.04编译Android2.2源码
- ubuntu下编译android2.2 froyo
- Ubuntu10.10下编译Android2.2平台
- Ubuntu10.10下编译Android2.2内核
- ubuntu下源码编译android2.2
- android2.2下编译c模块
- ubuntu 10.10 编译Android2.2问题解决
- android2.2下编译c模块
- Ubuntu10.10下编译Android2.2平台
- android2.2下编译c模块
- 编译Android2.2源码(1)
- 编译android2.3
- android2.3编译小记
- UML Distilled 3rd
- 用MS SOAP SDK 时编译错误
- BMP格式结构详解(转http://blog.chinaunix.net/u3/94039/showart_1885416.html)
- android NDK开发相关
- 关于过去,关于Java的点滴
- 编译android2.2
- 网站时的开发规范
- 随笔
- 介绍一种wince 6.0 如何添加 640*480液晶驱动的好方法
- zoj 2760 How Many Shortest Path //MAXFLOW
- 你不是菜鸟(9):一个B/S老鸟的困惑
- ORA-01591 锁定已被有问题的分配事务处理--解决方法
- No desire's desire
- Flex打印