网上教程很多,但都是介绍把整个android下载下来,这里分享一下下载指定android版本的方法。主要敲git的指令。
1.下载git
https://git-for-windows.github.io/
2.选择Git Bash, 按照下面指令
git clone --branch <tag_name> <repo_url> <target_path>
例如
https://android.googlesource.com/platform/frameworks/base/+refs
可用git指令
git clone --branch android-4.4.2_r2 https://android.googlesource.com/platform/frameworks/base android
表示要克隆tag android-4.4.2_r2到文件夹android。