This article was reproduced from: http://www.jianshu.com/p/0799435daf8e
Download of Android 7 source code
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)
Reference: https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
Note: Download this set of source code can be compiled normally, you can also start the simulator.
Compiling android7.0 Updates
添加openjdk8的第三方源
sudo add-apt-repository ppa:openjdk-r/ppa
执行更新
apt-get update
安装openjdk8
sudo apt-get install openjdk-8-jdk
选择版本
update-alternatives –config Java
查看版本
java -version
Switch JDK version
update-alternatives --config java
Error and modification
MODULE. TARGET. Static_libraries.libgtest already defined by external
Unset ndk_root
Reference links
Android7.0 source code compilation Run Guide
DIY compilation Android7
?
Xia da 2019
Links: http://www.jianshu.com/p/0799435daf8e
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.
Android 7 source Download "Go"