Linux系统的安装和Android编译环境的配置
亲测Android8.1-Android10.0可用
网上有很多Android环境配置教程,今天把实战好几次的完整方法记录下来,分为二个部分,Linux系统安装和Android编译环境配置,现在开始吧!
电脑硬件配置
A 64-bit environment is required for Gingerbread (2.3.x) and newer versions, including the master branch. You can compile older versions on 32-bit systems.
At least 100GB of free disk space for a checkout, 150GB for a single build, and 200GB or more for multiple builds. If you employ ccache, you will need even more space.
If you are running Linux in a virtual machine, you need at least 16GB of RAM/swap.
参考:https://www.cnblogs.com/sjjg/p/6088850.html
建议
8核以上CPU,运行内存16G以上,512G SSD,1T硬盘
安装Linux系统
步骤一
首先制作一个安装系统的U盘
下载镜像网址:https://www.ubuntu.com
或者:http://mirrors.aliyun.com
(注: Ubuntu14.04 可以编译Android 6.0
但是比较新的笔记本电脑,建议安装16.04,比较好装wifi驱动)