Android Studio“运行Git错误"; ,'空git --version输出:' [英] Android Studio "Error Running Git" , 'Empty git --version output:'

查看:290
本文介绍了Android Studio“运行Git错误"; ,'空git --version输出:'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了其他文章,并确定该可执行文件的路径正确,如下所示.我可以从Android Studio外部的此路径启动git.当前项目是Udacity的"sunshine-version 2",它是一个或两个旧版本,但这不会影响VCS的启动.我已经阅读了有关此问题的其他帖子,但没有一个可以解决此问题. 此外,当Android Studio gradle运行时,它将在多个窗口中打开git,然后几乎立即将其关闭.他们弹出一两秒钟,然后关闭.肯定是在尝试运行git,然后默认关闭?

I have looked at the other posts and have made certain that the path is correct to the executable file, as shown below. I can launch git from from this path outside of Android Studio. The current project is the "sunshine-version 2" from Udacity and it is a version or two old, but this should not affect the VCS from launching. I have read the other posts concerning this issue, but none have resolved this issue. Also, when Android Studio gradle runs, it will open git in several windows and then close them almost immediately. They pop-up for a second or two, and then close. It's definitely trying to run git, and then default closes?

推荐答案

我刚刚去过Git路径遍历,我所做的唯一不同就是在cmd文件夹中停了下来.您可能会在下一张屏幕截图中看到

I just went to the Git path ubication, the only different thing that I did was have stopped at the cmd folder. As you might see in the next screenshot

随后,我只选择git.exe选项,而不是选择git-gui.exe选项.看来对我有用.

Subsequently, instead of choosing git-gui.exe option, I select just git.exe option. And it seems to work for me.

这篇关于Android Studio“运行Git错误"; ,'空git --version输出:'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆