Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

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.)