Android系统源码AOSP repo sync报错:info: A new version of repo is available

小编在ubuntu-18.04.4 Android系统源码R(Android 11)下载及编译同步代码的时候,一直报错,下面是解决办法

info: A new version of repo is available
warning: repo is not tracking a remote branch, so it will not receive updates
repo reset: error: Entry 'SUBMITTING_PATCHES.md' not uptodate. Cannot merge.
fatal: Could not reset index file to revision 'v2.18^0'.

在这里插入图片描述
报此问题是因为 repo也是需要升级的,从aosp-latest.jar中解压后,repo sync同步时,有可能远程仓库(android源码仓库)已经更新了,报的问题也是远程仓库在本地的文件地址(你可以这样理解)没有更新导致,aosp/.repo/repo目录下 git status查看 git状态,可以发现落后了91个提交

cd bin/aosp/.repo/repo/
git status   

在这里插入图片描述
git pull 更新本地文件

git pull

在这里插入图片描述
后面就是漫长的等待了,看着像那么回事,问题解决了
在这里插入图片描述
同步成功
在这里插入图片描述
前期一直以为没有同步成功引起的这个问题,一直同步,导致浪费了时间,而没有上网上搜索这个错误,其实网上有很多答案,可以参考。

WSL进行aosp下载编译
android源代码中repo升级后出现的问题
repo sync repo reset: error: entry ‘comand.py ‘ not uptodate . cannot merge
error: Entry ‘xxxxxx’ not uptodate. Cannot merge.
2021-11-04 repo reset: error: Entry ‘command.py’ not uptodate. Cannot merge.

2021.12.4 13:57

  • 5
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值