现在的位置: 首页 > 综合 > 正文

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

2018年05月01日 ⁄ 综合 ⁄ 共 578字 ⁄ 字号 评论关闭

早上在电脑上同步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.th7.cn/Program/Android/201301/120372.shtml

抱歉!评论已关闭.