git下载google android源码遇到两个报错
1、fatal: unable to access 'https://flutter.googlesource.com/gallery-assets/': Failed to connect to flutter.googlesource.com port 443: Operation timed out #16694
解决:先执行命令git config --global http.proxy http://127.0.0.1:1880,之后再下载
$git config --global http.proxy http://127.0.0.1:1880
user MINGW64 /d
$ git clone https://android.googlesource.com/platform/packages/apps/PackageInstaller
Cloning into 'PackageInstaller'...
remote: Counting objects: 612, done
remote: Total 33941 (delta 16507), reused 33941 (delta 16507)
Receiving objects: 100% (33941/33941), 7.07 MiB | 387.00 KiB/s, done.
Resolving deltas: 100% (16507/16507), done.
2、error: RPC failed; curl transfer closed with outstanding read data remaining
解决:下载后边加参数 --depth 1
user MINGW64 /d/GitHubProject (master)
$ git clone https://android.googlesource.com/platform/packages/apps/Settings --depth 1
Cloning into 'Settings'...
remote: Counting objects: 4673, done
remote: Finding sources: 100% (4673/4673)
remote: Total 4673 (delta 915), reused 2075 (delta 915)
Receiving objects: 100% (4673/4673), 20.50 MiB | 2.00 MiB/s, done.
Resolving deltas: 100% (915/915), done.
Checking out files: 100% (4274/4274), done.