我首先安装了“GitKraken”并将一个存储库克隆到一个目录中。现在我下载了“Android Studio”并转到同一个文件夹并单击“build.gradle”,如果我想构建一个项目,我通常会这样做。
但我一直收到错误提示“无法启动 git.exe”,当我单击它时,它会将我带到一个设置菜单,要求我提供一个 git 可执行文件的路径。
我真的不明白是什么导致了这个错误。感谢您的帮助。
最佳答案
如 GitKraken FAQ 中所述
Unlike other Git GUI clients, GitKraken is not a front-end GUI for your command line; no Git tools are required. It works directly with your repositories with no dependencies, which means a separate Git installation isn’t even required.
Because of this, we currently do not offer direct integration between GitKraken and the CLI.
因此,解压缩 latest Git For Windows Portable edition任何你想要的地方(PortableGit-2.11.1-64-bit.7z.exe
)
然后你可以refer to this Git from your Android Studio ,如评论和插图所示 this article .
关于android - 尝试在 Android Studio 中使用 GitKraken 但遇到 "cant start git.exe"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42182498/