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'.

Android系统源码AOSP repo sync报错:info: A new version of repo is available_第1张图片
报此问题是因为 repo也是需要升级的,从aosp-latest.jar中解压后,repo sync同步时,有可能远程仓库(android源码仓库)已经更新了,报的问题也是远程仓库在本地的文件地址(你可以这样理解)没有更新导致,aosp/.repo/repo目录下 git status查看 git状态,可以发现落后了91个提交

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

Android系统源码AOSP repo sync报错:info: A new version of repo is available_第2张图片
git pull 更新本地文件

git pull

Android系统源码AOSP repo sync报错:info: A new version of repo is available_第3张图片
后面就是漫长的等待了,看着像那么回事,问题解决了
Android系统源码AOSP repo sync报错:info: A new version of repo is available_第4张图片
同步成功
Android系统源码AOSP repo sync报错:info: A new version of repo is available_第5张图片
前期一直以为没有同步成功引起的这个问题,一直同步,导致浪费了时间,而没有上网上搜索这个错误,其实网上有很多答案,可以参考。

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

你可能感兴趣的:(ubuntu,android,AOSP)