FEATURED · 精选文章

【2015-02-08】Android源码编译简单记录

发布时间 / 2026/8/25 15:33:07
来源 / 创域科博编辑部
栏目 / 资讯中心
【2015-02-08】Android源码编译简单记录 [历史归档]本文原发布于 cstriker1407.info 个人博客内容为历史存档仅供参考。发布时间2015-02-08 标题Android源码编译简单记录分类操作系统 / linux / android 标签androidAndroid源码编译简单记录启用缓存编译和启动备注继【 Android源码下载简单记录 】下载好之后就可以编译了这里笔记一份最简单的编译流程。详细的参数参考【 官网 】。启用缓存cstriker1407cstriker1407-x64:~$cd~ cstriker1407cstriker1407-x64:~$ gedit .bashrc#在bash文件的最后加入命令exportUSE_CCACHE1cstriker1407cstriker1407-x64:~$source.bashrc cstriker1407cstriker1407-x64:~$cdandroidsource/#作者编译的是5.0因此输入命令如下cstriker1407cstriker1407-x64:~/androidsource$ prebuilts/misc/linux-x86/ccache/ccache-M50G Set cache size limit to50.0Gbytes编译和启动cstriker1407cstriker1407-x64:~/androidsource$.build/envsetup.sh#编一个全功能的cstriker1407cstriker1407-x64:~/androidsource$ lunch aosp_arm-eng cstriker1407cstriker1407-x64:~/androidsource$makecstriker1407cstriker1407-x64:~/androidsource$ emulator#通过下面的命令定时查看缓存使用情况watch-n1-dprebuilts/misc/linux-x86/ccache/ccache-s备注作者这里只是简单的笔记了最基本的流程很多优化make 的多线程emulator的设置都没有笔记。后续在专门笔记把。
RELATED — 相关阅读

相关资讯

LATEST — 最新资讯

最新发布

TODAY — 本日精选

新闻

WEEKLY — 本周精选

新闻

MONTHLY — 本月精选

新闻