我一直试图在ubuntu 14.04上下载AOSP,但是花了太长时间后,却出现了以下错误。我已经使用了以下命令;
repo init -u https://android.googlesource.com/platform/manifest
repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r60
repo sync
然后,在浏览互联网后,我发现more optimum flags像depth, -c and --no-clone-bundle
一样,并增加了工作。
repo init --depth=1 -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r60
repo sync -c --no-clone-bundle -j2
但是我仍然在获取错误;
error: RPC failed; result=56, HTTP code = 200MiB | 7.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
remote: Counting objects: 37, done
remote: Finding sources: 100% (37/37)
remote: Counting objects: 11986, done
remote: Finding sources: 100% (11986/11986)
fatal: The remote end hung up unexpectedly6 MiB | 12.00 KiB/s
fatal: early EOF
fatal: unpack-objects failed
error: Cannot fetch platform/tools/external/gradle12.00 KiB/s
Fetching project device/google/muskie
remote: Counting objects: 75, done
remote: Finding sources: 100% (75/75)
remote: Total 75 (delta 4), reused 44 (delta 4)
From https://android.googlesource.com/device/google/muskie
* [new tag] android-8.1.0_r60 -> android-8.1.0_r60
fatal: The remote end hung up unexpectedly3 MiB | 14.00 KiB/s
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch platform/prebuilts/tools
error: Exited sync due to fetch errors