android - 如何处理 AOSP 存储库同步上的 curl clone.bundle 错误

标签 android android-source repo

从 AOSP 下载主分支后,我收到以下错误:

curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.

为什么会出现这个错误?

日志:

 * [new tag]         android-cts-4.4_r1 -> android-cts-4.4_r1
 * [new tag]         android-sdk-4.4.2_r1 -> android-sdk-4.4.2_r1
Fetching projects:   7% (32/448)  Fetching project platform/packages/apps/Launcher3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
 94 88.8M   94 83.9M    0     0   294k      0  0:05:08  0:04:51  0:00:17  357kremote:        Sending approximately 108.84 MiB ...
remote: Counting objects: 9, done
remote: Finding sources: 100% (9/9)
 94 88.8M   94 84.1M    0     0   294k      0  0:05:08  0:04:52  0:00:16  303kReceiving     objects:   0% (1/44323)   

最佳答案

在通过 Git 的 HTTP 协议(protocol)下载最新数据之前,Repo 会尝试下载预打包的 bundle 文件以引导每个 git。后者在服务器端更昂贵,导致性能更差,因此 bundle 文件允许下载减少一些角落。如果 bundle 文件不可用(就像在这种情况下),Repo 将忽略它并继续进行。换句话说,不要在意这个。

在较新版本的 repo 中,可以使用 --no-clone-bundle 选项忽略这一点,例如:

repo sync --no-clone-bundle

关于android - 如何处理 AOSP 存储库同步上的 curl clone.bundle 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23300245/

相关文章:

java - Android - 找不到 com.android.tools.build :aapt2:3. 2.1-4818971。在以下位置搜索:

java - 检测智能手机是否在范围内

android - AOSP repo 同步时间过长

android - repo 同步 : Fatal Error

jenkins - 使用 Helm 图表离线安装 Jenkins 插件

git - 如何避免获取 .repo/manifest.xml?

android - 以编程方式更改 float 按钮图像大小

android - 如何从 DatePicker 对话框中为多个调用设置日期

android - 在 xperia L 中编译 AOSP

android - 如何使用 LineageOS 代码库作为起点构建 Android-x86?