背景介绍:
遇到的一些环境问题总结.
1.repo 提示"A new version of repo is available"
问题:使用repo sync从其他仓库同步代码后,再使用repo sync同步当前仓库,本地的repo版本比当前尝试sync仓库的远程版本低。
解法一:删掉~/.repoconfig;
解法二:进到repo路径(这里是aosp/.repo/repo),查看当前状态($git status)。遇到问题时repo可以看到需要更新。更新repo($git pull)。