android源代码中repo升级后出现的问题

xiaoxiao2021-02-28  80

早上在电脑上同步android的源代码(使用 repo sync),提示“A new version of repo is available”,于是下载了最新的repo(curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > repo)

    再次执行repo还是同样的提示,仔细看看下面还有几行

    error: cannot run gpg: No such file or directory

    error: could not run gpg.

    error: could not verify the tag 'v1.12.0'

    原来这才是root cause(经查repo是可以自我升级的),杯具的mac确实没有gpg这个命令

    google找到了mac下面的gpg(https://www.gpgtools.org/),安装完成后再次执行repo sync又出现的新的错误

    gpg: Can't check signature: No public key

    error: could not verify the tag 'v1.12.0'

    求助google再次找到了答案

    “出错原因是曾使用repo sync从其它库sync过代码,删掉~/.repoconfig即可”

原始出处: http://www.ixueyi.com/jingyan/1863934.html

转载请注明原文地址: https://www.6miu.com/read-73303.html

最新回复(0)