2011-11-05 135 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