git下载google android源码遇到两个报错

本文针对使用Git下载Google Android源码过程中遇到的连接超时及RPC失败问题提供了解决方案。对于连接超时错误,可通过配置代理解决;而RPC失败问题则可通过添加--depth1参数来规避。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值