error: Unable to fully sync the tree while cloning AOSP
error: Unable to fully sync the tree while cloning AOSP
正在下载 android-8.1.0_r20。下载 45gb 后出现此错误。
终端中的错误消息:
error: libcore/: platform/libcore checkout ed54621bf38a761388fe5ea56d71c64befaa9f40
error: Cannot checkout platform/libcore
Checking out: 100% (592/592), done in 15m55.329s
error: Unable to fully sync the tree.
error: Checking out local projects failed.
Failing repos:
external/libunwind
external/kmod
frameworks/compile/slang
external/autotest
libcore
Try re-running with "-j1 --fail-fast" to exit at the first error.
此 git 标签的来源 link
https://android.googlesource.com/platform/libcore/+/refs/tags/android-8.1.0_r20
谁能告诉我如何解决这个问题?
这很奇怪,但是当我尝试将我的 Ubuntu PC 上的 AOSP 同步到外部 USB-SSD 驱动器但同步到主驱动器到主目录时工作正常。
此外,要重现此类问题,只需克隆上述回购协议之一即可,例如libcore
:
$ git clone https://android.googlesource.com/platform/libcore -b android-11.0.0_r45
然后用git status
,
检查
在主驱动器上:
$ git status
Not currently on any branch.
nothing to commit, working tree clean
在 外部 USB-SSD 驱动器上:
$ git status
Not currently on any branch.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: Android.bp
deleted: AndroidTest-core-tests.xml
deleted: CleanSpec.mk
deleted: JavaLibrary.bp
deleted: LICENSE
deleted: NOTICE
...
<6590 other deleted files>
...
Untracked files:
(use "git add <file>..." to include in what will be committed)
Android.bp
AndroidTest-core-tests.xml
CleanSpec.mk
JavaLibrary.bp
LICENSE
...
<total 34 untracked files>
...
xml/
总结:
如果您使用外部驱动器克隆 AOSP,请尝试将其复制到主驱动器(主目录)中。
这个问题可能是由于您下载代码的驱动器的分区类型造成的。
请确保驱动器分区类型是 Linux 文件系统(即 ext4)。
正在下载 android-8.1.0_r20。下载 45gb 后出现此错误。
终端中的错误消息:
error: libcore/: platform/libcore checkout ed54621bf38a761388fe5ea56d71c64befaa9f40
error: Cannot checkout platform/libcore
Checking out: 100% (592/592), done in 15m55.329s
error: Unable to fully sync the tree.
error: Checking out local projects failed.
Failing repos:
external/libunwind
external/kmod
frameworks/compile/slang
external/autotest
libcore
Try re-running with "-j1 --fail-fast" to exit at the first error.
此 git 标签的来源 link https://android.googlesource.com/platform/libcore/+/refs/tags/android-8.1.0_r20
谁能告诉我如何解决这个问题?
这很奇怪,但是当我尝试将我的 Ubuntu PC 上的 AOSP 同步到外部 USB-SSD 驱动器但同步到主驱动器到主目录时工作正常。
此外,要重现此类问题,只需克隆上述回购协议之一即可,例如libcore
:
$ git clone https://android.googlesource.com/platform/libcore -b android-11.0.0_r45
然后用git status
,
在主驱动器上:
$ git status
Not currently on any branch.
nothing to commit, working tree clean
在 外部 USB-SSD 驱动器上:
$ git status
Not currently on any branch.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: Android.bp
deleted: AndroidTest-core-tests.xml
deleted: CleanSpec.mk
deleted: JavaLibrary.bp
deleted: LICENSE
deleted: NOTICE
...
<6590 other deleted files>
...
Untracked files:
(use "git add <file>..." to include in what will be committed)
Android.bp
AndroidTest-core-tests.xml
CleanSpec.mk
JavaLibrary.bp
LICENSE
...
<total 34 untracked files>
...
xml/
总结: 如果您使用外部驱动器克隆 AOSP,请尝试将其复制到主驱动器(主目录)中。
这个问题可能是由于您下载代码的驱动器的分区类型造成的。 请确保驱动器分区类型是 Linux 文件系统(即 ext4)。