2011-11-05 98 views
0
[email protected]:~/android/froyo$ repo init -u https://android.googlesource.com/platform/manifest -b froyo 
Traceback (most recent call last): 
    File "/home/computer/bin/repo", line 685, in <module> 
    main(sys.argv[1:]) 
    File "/home/computer/bin/repo", line 652, in main 
    _Init(args) 
    File "/home/computer/bin/repo", line 184, in _Init 
    _CheckGitVersion() 
    File "/home/computer/bin/repo", line 209, in _CheckGitVersion 
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) 
    File "/usr/lib/python2.6/subprocess.py", line 633, in __init__ 
    errread, errwrite) 
    File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child 
    raise child_exception 
OSError: [Errno 2] No such file or direc 

我收到此错误。我如何解决这个错误?无法获取Android源代码

在此先感谢。

回答

1

你可能还没有安装git。确保在cmd提示符下键入git

如果你的git安装有问题,通过使用

apt-get remove git-core

删除它,然后使用重新安装

apt-get install git-core