AndroidStudio出现Cannot run program "/usr/local/bin/git"错误
来源:互联网 发布:python与weka的区别 编辑:程序博客网 时间:2024/06/15 23:22
在Android studio上,导入带有git的项目时,提示下面的错误
ProcessNotCreatedException: Cannot run program "/usr/local/bin/git" (in directory...): error=2, No such file or directory
通过网上查阅资料发现,原来Android Stduio默认的git是安装在“usr/local/bin/git”目录,但不知道什么时候把这个目录下git删掉了,导致出现这种错误。
解决办法:
通过在“Preferences”搜索git”,如下图:
选中自己的git路径就行,在mac上可以执行“whereis git”查看git安装路径,如果没有安装,可以先安装git,然后把对应路径复制到这就行了
0 0
- AndroidStudio出现Cannot run program "/usr/local/bin/git"错误
- Android studio中Git路径找不到(Mac版),提示Cannot run program "/usr/local/bin/git" error=2, No such file or dir
- 安装openssl 扩展的时候出现Cannot find config.m4. Make sure that you run '/usr/local/php/bin/phpize' in the to
- 编译Android出现/usr/bin/ld: cannot find -lncurses错误
- php安装扩展错误:Cannot find config.m4. Make sure that you run /usr/local/bin/phpize in the top level sourc
- Cannot run program "/usr/local/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or
- 解决AndroidStudio Cannot run program "git"(in directory) "F;\GitHubProiject.XXX" CreateProcess error=2
- jadclipse反编译时出现异常-Cannot run program "%JAVA_HOME%\bin\jad.exe" (转载)
- Cannot find config.m4. Make sure that you run '/usr/local/php/bin/phpize' in the top level source di
- apache 出现错误 /usr/local/apache2/bin/apachectl start httpd: Could not reliably determine the server
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- 问题:Cannot find /usr/local/tomcat7/bin/setclasspath.sh
- 解决cannot run test program错误
- Cannot run program "jad" 的错误
- #洛谷 P1603 斯诺登的密码
- 交叉验证等验证方法
- [数据结构和算法]二叉树最低公共父节点
- BFS最短路模板题 (山东理工大学OJ-2139)
- rman恢复所有数据,控制,参数文件,下
- AndroidStudio出现Cannot run program "/usr/local/bin/git"错误
- NYOJ28大数阶乘
- nodejs 压平依赖树
- maven创建web项目
- C++之static及其作用域
- 《Objective-C编程全解》 读书笔记 第十八章 异常和错误
- 已经解决 spring boot 拦截器中注入bean
- 彻底解决Spring MVC 中文乱码 问题
- 《Objective-C编程全解》 读书笔记 第十九章 并行编程