参考https://www.vectoros.club/post/fe9083b4.html
参考https://blog.csdn.net/weixin_42695485/article/details/108655661
可以参考https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
直接下载aosp-latest.tar文件,然后解压repo sync同步
同步后,直接repo init -b android-4.4.4_r1 --depth=1
即可取出代码
repo sync
success resultChecking out: 100% (677/677), done in 9m34.823s
repo sync has finished successfully.
make
成功返回#### build completed successfully (04:08:18 (hh:mm:ss)) ####
fsutil.exe file setCaseSensitiveInfo <path> enable
这里的路径不能偷懒,直接设定AOSP和CCACHE的上级目录,而应该分别设定
实测发现原来是Window系统版本的问题,老版本虽然可以设置大小写敏感,但是子目录无法继承,新版虽然已创建的子目录也无法继承,但新创建的子目录可以继承
apt-get install python3
whereis python3
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo apt install python
Checking out files: 100% (17/17), done.
Checking out files: 100% (2255/2255), done.
Checking out: 100% (677/677), done in 2h17m6.703s
error: Unable to fully sync the tree.
error: Downloading network changes failed.
Try re-running with "-j1 --fail-fast" to exit at the first error.
根据提示执行repo sync -j1 --fail-fast
即可
error: Exited sync due to fetch errors.
Local checkouts *not* updated. Resolve network issues & retry.
`repo sync -l` will update some local checkouts.
根据提示执行repo sync -l
将源码放在WSL的文件系统里,不要放在Window文件系统里
参考https://segmentfault.com/a/1190000039970343
/etc/java-8-openjdk/security/java.security
文件里属性jdk.tls.disabledAlgorithms去掉TLSv1, TLSv1.1参数,然后aosp/prebuilts/sdk/tools/
目录下执行./jack-admin kill-server && ./jack-admin start-server
成功。
python3->python2
声明:转载请注明出处,原文地址:shlu's note