我是靠谱客的博主 矮小茉莉,最近开发中收集的这篇文章主要介绍清华镜像源的android 源码后make 项目 error.GitError: config: [Errno 2] No such file or directory,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

下载清华镜像源的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所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部