Ubuntu15.10 编译 Android5.0 源码
2015-12-17 22:06
417 查看
最近无事,编译了一下android 5.0的源码。
首先,感谢前人的栽树,主要是参考了http://blog.csdn.net/chouretang/article/details/43769839这篇文章,在此谢过。本文使用的是Ubuntu15.10 。
不过中间还是遇到了一些问题,列举如下:
要修改为以下的,原文应该是作者编辑问题,有多余的空格导致错误。
sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dri:i386 libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc
zlib1g-dev:i386 dpkg-dev
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
选择版本
发一张成功的截图
首先,感谢前人的栽树,主要是参考了http://blog.csdn.net/chouretang/article/details/43769839这篇文章,在此谢过。本文使用的是Ubuntu15.10 。
不过中间还是遇到了一些问题,列举如下:
1、原文中
3.安装编译依赖的软件
要修改为以下的,原文应该是作者编辑问题,有多余的空格导致错误。sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dri:i386 libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc
zlib1g-dev:i386 dpkg-dev
2、编译过程中可能会遇到以下错误,使用make update-api进行编译即可
******************************You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
3、编译模拟器
选择版本
4、启动模拟器
参考http://jingyan.baidu.com/article/86112f13549b44273797872c.html 即可发一张成功的截图
相关文章推荐
- 谷歌安卓官方文档之已知的问题
- 国内android资源备份很全的一个站
- Android系统各版本号及代号
- Android如何设置背景透明、开关输入法、改变标题栏颜色、layer-list
- Android SlidingMenu 开源项目 侧拉菜单的使用(详细配置)
- Android SlidingMenu 使用详解
- Android中获取全局Context
- android WebView加载 assets html文件
- Android 最简单的导航栏实现
- 1、Android代码命名规范
- android--调用系统相机拍照,显示并保存照片 - zhengwen
- Android高效率编码-细节,控件,架包,功能,工具,开源汇总,你想要的这里都有
- Android中JNI的使用方法
- Android 判断当前网络状态
- Android AsyncTask onProgressUpdate 方法的些许研究
- Android之取消ViewPage+Fragment的预加载
- 【Android图片加载框架】制作自己的图片加载框架
- Android学习之核心组件Activity的生命周期
- Android5.0新组件TabLayout+ViewPager实现Tab页面
- android运行错误