cygwin + windows下载android资源

时间:2011-12-29 07:25:27

标签: android cygwin

我在windows上使用cygwin来下载android资源; http://source.android.com/source/downloading.html但是当我运行repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1时它会给我:

File "/opt/android/bin/repo", line 595, in 
    main(sys.argv[1:])
  File "/opt/android/bin/repo", line 562, in main
    _Init(args)
  File "/opt/android/bin/repo", line 181, in _Init
    _CheckGitVersion()
  File "/opt/android/bin/repo", line 210, 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 directory

编辑:原始提问者留下以下答案:

我解决了它:我的cygwin没有下载git,所以我在cygwin中下载了git,一切正常

1 个答案:

答案 0 :(得分:0)

isolveit,因为我的cygwin没有下载git,所以我在cygwin下载,一切正常