使用repo无法成功下载 vim3l 代码

Which Khadas SBC do you use?

kvim3l

Which system do you use? Android, Ubuntu, OOWOW or others?

Android 9.0

Which version of system do you use? Khadas official images, self built images, or others?

self built images

Please describe your issue below:

使用repo无法成功下载 vim3l 代码

Post a console log of your issue below:

Receiving objects: 38% (22408/58030), 1.01 GiB | 4.65 MiB/s

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

error: Cannot fetch android_prebuilts_gradle-plugin from GitHub - khadas/android_prebuilts_gradle-plugin
fatal: fetch-pack:无效的 index-pack 输出

@tongguangli 有修改为清华源下载吗?没有的话,请先修改为清华源下载。有的话,请参考下面链接 a2)–repo版本问题章节试下。

在repo sync之前修改default.xml文件,把Google的URL地址改为清华大学的,如下:
gouwa@Server:~/project/khadas/aosp/.repo/manifests$ git diff
diff --git a/default.xml b/default.xml
index f48a988..b8cb9da 100644
--- a/default.xml
+++ b/default.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <manifest>
-  <remote fetch="https://android.googlesource.com/" name="aosp" review="https:/
+  <remote fetch="https://aosp.tuna.tsinghua.edu.cn/" name="aosp" review="https:
   <remote fetch="https://github.com/khadas/" name="github"/>

   <default remote="github" revision="refs/heads/Nougat" sync-j="4"/>
gouwa@Server:~/project/khadas/aosp/.repo/manifests$

您好:已经修改了清华的源了。这个是我的修改

“<remote fetch="https://aosp.tuna.tsinghua.edu.cn/" name="aosp" review="https://aosp.tuna.tsinghua.edu.cn/"/>
  <remote fetch="https://ghproxy.com/https://github.com/khadas/" name="github"/>
  <default remote="github" revision="khadas-vims-pie" sync-c="true" sync-j="4"/>”

有的话,请参考上面链接 a2)–repo版本问题章节替换repo版本试下。

看这信息,这是32位的SDK,我们现已经有64位的SDK了。
https://docs.khadas.com/products/sbc/vim3/development/android/download-android-source-code

使用64位分支依然有这个问题
Receiving objects: 38% (22421/58030), 1.06 GiB | 1.39 MiB/s

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

error: Cannot fetch android_prebuilts_gradle-plugin from https://ghproxy.com/https://github.com/khadas/android_prebuilts_gradle-plugin

Fetching: 100% (705/705), done in 47m27.242s

@tongguangli 你有替换repo版本验证吗?
我这边刚刚单独下载此目录验证是OK的。或者你同时可以先按照下面的步骤单独下载此目录验证下。

vim3_64$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-vim3-p-64bit
vim3_64$ repo sync -c prebuilts/gradle-plugin
... A new version of repo (2.35) is available.
... New version is available at: /users/hlm/github_test/vim3_64/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable.  Please talk to your sysadmin or distro
!!! to get an update installed.

Fetching: 100% (1/1), done in 54m45.483s
Checking out files: 100% (33748/33748), done.
Checking out: 100% (1/1), done in 19.256s
repo sync has finished successfully.