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 trialAvraham Sedaghat
4,217 Points"Cant start Git: git.exe probably the path to Git executable is not valid" Fix it." error
What do i do to set it up? Do i need to?
1 Answer
Harry James
14,780 PointsHey Avraham!
When you get this error, it usually means that the person who you imported the project from was using the Git VCS (Version Control System) but, if you're not using it, you can turn it off.
To do this, go to File >> Settings >> Version Control and make sure that the box is empty (Apart from the < Project >
and < none >
placeholders):
You may also need to clear the path to Git which you can do under the Git heading (Just make sure the box is blank again):
Then, hopefully the error will go away (You may need to restart Android Studio).
If after that, you get this message:
You can just press Ignore VCS Root Errors.
I believe this is just when Android Studio detects a .git file in the project directory. It might also go away if you delete the .git file from your File Explorer I think (I use git so I can't test whether this works or not):
Either way should work though :)
If you are using Git however, you should specify the correct path to your git.exe file under the Git heading shown above and the problem will be fixed.
Hope it helps and if you have any questions about this or any problems, give me a shout :)