参考 :https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
step:
1、ubuntu 环境
2、打开终端(快捷键:ctrl + alt + t)
3、执行命令:wget https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar(压缩包约20G,非常耗时)
4、解压下载的压缩包(执行命令:tar xvf aosp-latest.tar)
5、进入aosp文件夹,执行命令:repo sync(中途出错,重复执行命令:repo sync)
注:下载的这套源码可以正常编译,也可以启动模拟器。