概述
下载清华镜像源的android 源码后make 项目出现这错误
Traceback (most recent call last):
File "/home/sancai/aosp/.repo/repo/main.py", line 547, in <module>
_Main(sys.argv[1:])
File "/home/sancai/aosp/.repo/repo/main.py", line 522, in _Main
result = repo._Run(argv) or 0
File "/home/sancai/aosp/.repo/repo/main.py", line 160, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/sancai/aosp/.repo/repo/command.py", line 69, in OptionParser
self._Options(self._optparse)
File "/home/sancai/aosp/.repo/repo/subcmds/sync.py", line 188, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/sancai/aosp/.repo/repo/manifest_xml.py", line 385, in default
self._Load()
File "/home/sancai/aosp/.repo/repo/manifest_xml.py", line 429, in _Load
b = m.GetBranch(m.CurrentBranch).merge
File "/home/sancai/aosp/.repo/repo/project.py", line 828, in GetBranch
return self.config.GetBranch(name)
File "/home/sancai/aosp/.repo/repo/git_config.py", line 210, in GetBranch
b = Branch(self, name)
File "/home/sancai/aosp/.repo/repo/git_config.py", line 746, in __init__
self.merge = self._Get('merge')
File "/home/sancai/aosp/.repo/repo/git_config.py", line 789, in _Get
return self._config.GetString(key, all_keys = all_keys)
File "/home/sancai/aosp/.repo/repo/git_config.py", line 141, in GetString
v = self._cache[_key(name)]
File "/home/sancai/aosp/.repo/repo/git_config.py", line 258, in _cache
self._cache_dict = self._Read()
File "/home/sancai/aosp/.repo/repo/git_config.py", line 264, in _Read
d = self._ReadGit()
File "/home/sancai/aosp/.repo/repo/git_config.py", line 306, in _ReadGit
d = self._do('--null', '--list')
File "/home/sancai/aosp/.repo/repo/git_config.py", line 332, in _do
capture_stderr = True)
File "/home/sancai/aosp/.repo/repo/git_command.py", line 229, in __init__
raise GitError('%s: %s' % (command[1], e))
error.GitError: config: [Errno 2] No such file or directory
这是没有安装git:
sudo apt-get install git
最后
以上就是矮小茉莉为你收集整理的清华镜像源的android 源码后make 项目 error.GitError: config: [Errno 2] No such file or directory的全部内容,希望文章能够帮你解决清华镜像源的android 源码后make 项目 error.GitError: config: [Errno 2] No such file or directory所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复