[android]初始化代码仓库时出现“OSError: [Errno 2] No such file or directory”错误
OSError: [Errno 2] No such file or directory
[email protected]:/home/android/src#../repo init -u git://android.git.kernel.org/platform/manifest.git
Traceback (most recent call last):
File "../repo", line 595, in <module>
main(sys.argv[1:])
File "../repo", line 562, in main
_Init(args)
File "../repo", line 181, in _Init
_CheckGitVersion()
File "../repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
这是由于没有安装git造成的,安装上git就可以了。按说程序里面应该判断一下系统是否安装了git,不知道为什么没有判断。
apt-get install git
更多相关文章
- wifi 通知栏上 选择程序时出现你的应用
- android常见技巧---Android按返回键退出程序但不销毁
- Android P系统设置之默认选择网络类型(4G,3G,2G)
- Android 系统广播机制
- android4.0系统点击后颜色-浅蓝色
- Xposed: 勾住(Hook) Android应用程序对象的方法,实现AOP
- android 程序截图功能
- SQlite Android 数据库应用程序系统
- android 程序漰溃 后台handle处理类