Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Android Studio > Genymotion > Github

So I managed to install Android Studio and Genymotion on my work laptop (windows 7) for testing and it works fine, GitHub works out of the box. However at home PC (Windows 8.1) when I launch GitHub via Android Studio's VCS I am greeted with the following error.

Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified

I Googled the problem and came across a StackOverflow answer that might as well have been written in Greek. Does anyone have experience with this problem and or making it work? Ben Jakuben any luck?

1 Answer

I'll leave the answer here for anyone else that might need it.

Turns out even when you trying to use GitHub in Android Studio it has to first find git. To fix this in Android Studio click File > Settings > Version Control > Git and then set the path to the location of git.exe on your system. In my case it was 'c:\program files (x86)\git\bin\git.exe'

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Nice - glad you got it working! I have an older stage on using Git for Android but will probably update it sooner than later. I'll make sure to mention this.

Yeah it seems for whatever reason that on windows 8.1 Android Studio didn't automatically find git as it did on the windows 7 machine during the install of Android Studio (AS from here on out.)