Building the Android System

来源:互联网 发布:淘宝联盟超高返利教程 编辑:程序博客网 时间:2024/05/16 19:48
Building the Android System

1.Initialize

source build/envsetup.sh

or

.build/envsetup.sh


2.Choose a Target

lunch

3.Build the Code."WITH_DEXPREOPT=false"这句是为了以后可以模块编译。
详见:http://blog.csdn.net/leonan/article/details/8629561

make -j8 WITH_DEXPREOPT=false

4.Run It!

emulator

5.Ubuntu下Android源码修改、编译及运行、launcher定制.
详见:http://wenku.baidu.com/view/124b24f9910ef12d2af9e7d4.html



FAQ。
详见:http://jingyan.baidu.com/article/c85b7a641200e0003bac95a3.html


1.运行模拟器可能会出现的问题:

No command 'emulator' found, did you mean:

编译成功之后,在终端运行emulator命令,却提示: 

No command 'emulator' found, did you mean:

Command 'qemulator' from package 'qemulator' (universe)

emulator: command not found

解决方法:

重新运行以下命令:

source build/envsetup.sh

lunch full-eng

之后再次运行 emulator  命令


2.清理编译。

make: Nothing to be done for `all' 解决方法
1.这句提示是说明你已经编译好了,而且没有对代码进行任何改动。
若想重新编译,可以先删除以前编译产生的目标文件:
make clean
然后再
make
2.也可以make clean all
再 make install

0 0
原创粉丝点击