ubuntu编译android源码
2016-04-13 16:54
603 查看
1.首先为安装ubuntu系统,大家可以参考以下链接(建议大家把 / 根目录分70G以上)
http://jingyan.baidu.com/article/4d58d5411380dd9dd5e9c07e.html
2.安装OpenJdk(参考这个网址)
http://jingyan.baidu.com/article/4dc40848a3fddfc8d946f1ee.html
3.安装编译必备的工具
http://jileniao.net/post-157.html
4.下载android源码(国内也可以)
http://blog.csdn.net/song19891121/article/details/50099857 http://blog.csdn.net/ldld1717/article/details/52462869 http://blog.csdn.net/sunao2002002/article/details/47869281
清华大学镜像库:
https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
5.编译过程
http://blog.chinaunix.net/uid-22816738-id-4149398.html
6.用到的命令
卡住不动:ctrl+Z
清除make信息:make clobber
开始编译: .build /envsetup.sh
选择版本:lunch
开始编译:make -j16
编译失败继续编译:make -j16 update-api
编辑文件:su gedit 文件路径
修改文件权限: chmod -R 777 文件路径
删除文件:sudo rm -rf 文件的路径
拷贝文件:cp -r 文件的路径
出现api的问题:
make -j16 update-api
路径:
repo:
问题:
1.降级到make3.81
http://blog.csdn.net/victory08/article/details/51593994
2.安装JDK1.6
http://blog.csdn.net/white__cat/article/details/41826965
编译是个考验耐心的过程,祝大家成功!
http://jingyan.baidu.com/article/4d58d5411380dd9dd5e9c07e.html
2.安装OpenJdk(参考这个网址)
http://jingyan.baidu.com/article/4dc40848a3fddfc8d946f1ee.html
3.安装编译必备的工具
http://jileniao.net/post-157.html
4.下载android源码(国内也可以)
http://blog.csdn.net/song19891121/article/details/50099857 http://blog.csdn.net/ldld1717/article/details/52462869 http://blog.csdn.net/sunao2002002/article/details/47869281
清华大学镜像库:
https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
5.编译过程
http://blog.chinaunix.net/uid-22816738-id-4149398.html
6.用到的命令
卡住不动:ctrl+Z
清除make信息:make clobber
开始编译: .build /envsetup.sh
选择版本:lunch
开始编译:make -j16
编译失败继续编译:make -j16 update-api
编辑文件:su gedit 文件路径
修改文件权限: chmod -R 777 文件路径
删除文件:sudo rm -rf 文件的路径
拷贝文件:cp -r 文件的路径
出现api的问题:
make -j16 update-api
路径:
repo:
curl https://storage-googleapis.lug.ustc.edu.cn/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo
问题:
1.降级到make3.81
http://blog.csdn.net/victory08/article/details/51593994
2.安装JDK1.6
http://blog.csdn.net/white__cat/article/details/41826965
编译是个考验耐心的过程,祝大家成功!
相关文章推荐
- Android Studio rename module Can't rename root module
- 【转载】第一次使用Android Studio时你应该知道的一切配置(三):gradle项目构建
- Android海量字体设置
- 启程Android之路
- XPlane android 2D手游开发实战
- 《Android源码设计模式》读书笔记 (24) 第24章 桥接模式
- Android Wear SDK 中文 ---- 创建表盘 [Creating Watch Faces]
- Android自定义View之刮刮卡效果
- 【转载】第一次使用Android Studio时你应该知道的一切配置(二)
- AndroidTest Espresso初步体验
- Android Wear API 中文 ---- 翻译目录
- Android属性动画实战(一)
- Android设置TextView颜色setTextColor
- Android之GPS定位详解
- Android中dip(dp)与px之间单位转换
- android零碎知识点总结
- Android studio import module Cannot find declaration to go to
- Adb --help
- AndroidManifest versionCode
- android 中PendingIntent 和AlarmManager