Android的工作室结帐Github的错误" CreateProcess的= 2英寸(视窗) [英] Android Studio Checkout Github Error "CreateProcess=2" (Windows)
问题描述
今天我试着使用全新的Android工作室签我Github上项目,并结束了这个讨厌的错误:
Today I've tried to checkout my Github project using brand new Android Studio and ended up with this nasty error :
为什么事情就从来没有开箱的...?
Why things just never work out of the box ...?
推荐答案
我已经解决了这个问题,我将解释如何:
I've solved the problem , and I will explain how :
- 对于Windows客户端并安装。
- 客户端安装成功后,它与你的GitHub account.It连接应该很容易,只要按照向导。
- 然后,你应该到你的路径变量添加 git.exe位置。你应该添加的位置可能会是这样的:
C:\\Users\\Your_Username\\AppData\\Local\\GitHub\\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\\bin
- Download Github For Windows client and install it.
- After The client successfully installed , connect it with your github account.It should be easy , just follow the wizard.
- Then you should add git.exe location to your "Path Variable". The location you should add will probably be something like : C:\Users\Your_Username\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin
另外,如果你不希望添加到环境变量。您可以打开Android工作室,请访问:
设置 - >版本控制 - >的Git
在文本框旁边的路径Git的可执行文件,你会看到git.exe,只是给它一个完整的路径,如下所示:
C:\\Users\\Your_Username\\AppData\\Local\\GitHub\\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\\bin\\git.exe
Alternatively , if you don't want to add to environment variables. You can open the android studio and go to : Settings -> Version Control -> Git In text box next to "Path to Git Executable" you will see "git.exe" , just give it a full path like so : C:\Users\Your_Username\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin\git.exe
希望它可以节省您的时间。快乐编码:)
Hope it saved your time . Happy coding :)
编辑:
对于最新的Github上的Windows版本的一些可以找到下git.exe ... \\ CMD \\ git.exe的而非 .. \\ BIN \\ git.exe的
EDIT : For latest Github for windows versions some can find the git.exe under "...\cmd\git.exe" rather than "...\bin\git.exe".
这篇关于Android的工作室结帐Github的错误" CreateProcess的= 2英寸(视窗)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!