我是能下载,但不能初始化,清华镜像源都没有详细的操作步骤,官方能不能提供一下呀
建议使用以下方法下载代码:
信息不全,能详细说下你的操作流程吗??????
我是按照网址https://docs.khadas.com/zh-cn/vim1/DownloadAndroidSourceCode.html
这里的操作进行的,能下载,但是到了后面就会报以上截图的错误,像是这个网址https://codeload.github.com/khadas/android_system_extras/zip/Vim 有个更新文件不能同步android_system_extras-Vim这个文件, 然后我在浏览器能点击这个网址并下载了该文件android_system_extras-Vim,是可以下载的。像是源码没同步完,导致现在repo 创建分支也会失败,android编译不通过,智能编译uboot, 这个问题该怎么解决呢?或者你可以把patch通过网盘链接发给我吗,谢谢。
你好,你截图部分操作已完成,还是报以下错误,
< Cache-Control: no-cache, max-age=0, must-revalidate
< Vary: Accept-Encoding
< X-GitHub-Request-Id: 4742:233D:FA20D:1A8547:5E4B9562
< X-Frame-Options: DENY
<
15:42:48.508674 pkt-line.c:80 packet: fetch-pack< NAK
15:42:48.508726 pkt-line.c:80 packet: fetch-pack> 0000
15:42:48.509020 pkt-line.c:80 packet: sideband< \2Enumerating objects: 2, done.
remote: Enumerating objects: 2, done.
15:42:48.509050 pkt-line.c:80 packet: sideband< \2Counting objects: 50% (1/2)\15Counting objects: 100% (2/2)\15Counting objects: 100% (2/2), done.
remote: Counting objects: 100% (2/2), done.
15:42:48.509058 pkt-line.c:80 packet: sideband< \2Compressing objects: 50% (1/2)\15Compressing objects: 100% (2/2)\15
15:42:48.509064 pkt-line.c:80 packet: sideband< \2Compressing objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
15:42:48.509076 pkt-line.c:80 packet: sideband< PACK …
15:42:48.772511 run-command.c:646 trace: run_command: git index-pack --stdin -v --fix-thin ‘–keep=fetch-pack 7497 on panwit-virtual-machine’ --pack_header=2,23946
15:42:48.774497 git.c:344 trace: built-in: git index-pack --stdin -v --fix-thin ‘–keep=fetch-pack 7497 on panwit-virtual-machine’ --pack_header=2,23946
- GnuTLS recv error (-54): Error in the pull function.s/s
- stopped the pause stream!
- Closing connection 0
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch android_system_extras from https://github.com/khadas/android_system_extras
Fetching projects: 100% (687/687), done.
Checking out projects: 100% (687/687), done.
这个怎么解决呢?
首先麻烦执行这条命令:
find .repo -iname *extras.git
把输出结果贴出来看看,谢谢!
目前解决方法:
1,把下面两个目录删掉:
.repo/project-objects/android_system_extras.git
.repo/projects/system/extras.git
2,再从此链接下载进行替换。
链接:https://pan.baidu.com/s/1BXdWk8-zMkstxUQd_MzEYg
提取码:m3g8
然后再同步更新看看。
3,最后请移步到此网页,看看你是否有同样的问题。即确认那个APK大小问题。
若有,参考网页的方法解决。
@Terry 现遇到此两个问题,麻烦跟进下。
你好,现在同步如下,
但是编译之后报错了
ninja: error: ‘out/target/product/kvim/obj/STATIC_LIBRARIES/libfec_intermediates/export_includes’, needed by ‘out/target/product/kvim/obj/EXECUTABLES/adbd_intermediates/import_includes’, missing and no known rule to make it
22:37:40 ninja failed with: exit status 1
这个错误,是什么问题呢?Thank you!
你好,请问百度下载源需要repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie
上面怎么执行过去的呀
我每次都卡在
fatal: unable to access ‘https://github.com/khadas/android_manifest.git/’: Failed to connect to github.com port 443: Connection timed out
通过翻墙可以编译了,不过出现上面一样的错误
ninja: error: ‘out/target/product/kvim3/obj/STATIC_LIBRARIES/libfec_intermediates/export_includes’, needed by ‘out/target/product/kvim3/obj/EXECUTABLES/adbd_intermediates/import_includes’, missing and no known rule to make it
重新同步
cd bootloader/uboot
./mk kvim3
cd -
source build/envsetup.sh
lunch kvim3-userdebug
make -j24 otapackage
编译还是一样出错
使用 ```
repo sync --force-sync system/extras
然后报错
raise GitError('Cannot initialize work tree for ' + self.name)
error.GitError: Cannot initialize work tree for android_system_extras
再次重新同步
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
按照这里
目前解决方法:
1,把下面两个目录删掉:
.repo/project-objects/android_system_extras.git
.repo/projects/system/extras.git
同时替换khadas/device/khadas/kvim3/preinstall文件夹
问题还是没有解决
还是没有解决,依旧报错
ninja: error: 'out/target/product/kvim3/obj/STATIC_LIBRARIES/libfec_intermediates/export_includes', needed by 'out/target/product/kvim3/obj/EXECUTABLES/adbd_intermediates/import_includes', missing and no known rule to make it
你好,我下载清华源的时候
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
这步怎么替换成
repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie
请指教一下
到啦这里总是会报错
按照
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo
这样修改还是没有作用。。。
你用的是什么编译命令? 你不是vim3l板子吗,看LOG你使用的是vim
我用百度下载的 编译lunch kvim3-userdebug 也会报这个错误
请问你其它android 8.0以上代码能完成编译吗?看这个错误,我们都没有遇到过。
所以怀疑你们的编译器有问题,麻烦参考下有关网上解决ninja的问题。
我编译rk3399 8.1的时候 可以通过的
我下载清华源的镜像后 修改default.xml,然后repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie,也会报错。github 拒绝访问这样的错误
麻烦贴出全部流程LOG看看。。。。。。。。。
清华源下载
wget -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包
tar xf aosp-latest.tar
cd AOSP # 解压得到的 AOSP 工程目录
# 这时 ls 的话什么也看不到,因为只有一个隐藏的 .repo 目录
repo sync # 正常同步一遍即可得到完整目录
# 或 repo sync -l 仅checkout代码
这一步应该没有问题吧,需要修改其他的吗