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 trialLukas Keen
1,322 PointsAccess denied
CreateProcess error = 5, Access is denied
Does anyone know why I might be receiving this error. I have already successfully logged onto GitHub through Android Studio and have specified the path through the Git version control option. If anyone can figure this out I would greatly appreciate that.
Thanks, -Lukas
Joshua Douce
13,120 PointsThis is the full path and error. C:\Users\Joshua\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc": CreateProcess error=5, Access is denied I downloaded git through the gitHub desktop app thought I would mention this as it might be relevant
3 Answers
Harry James
14,780 PointsHey Joshua!
It looks like you're using the wrong URI here - that is the one for the GitHub application rather than the Git executable - this should also fix Lukas's problem as well.
It's a little bit complicated to find but if you head over to C:\Users[YOUR WINDOWS USERNAME]\AppData\Local\GitHub*, replacing [YOUR WINDOWS USERNAME]
with your username *(If you don't know what this is, look in C:/Users and your name will be displayed there), you should find a **PortableGit directory, open this up. Next, open the bin directory. Now, copy the path for where you are in right now.
Back in Android Studio, paste this path in but put \git.exe on the end, this is where the Git executable itself is located.
Hopefully this will get your Git working but if you get into any problems on the way, give me a shout and I'll try my best to help out :)
Joshua Douce
13,120 PointsProblem fixed thanks for the help :)
Harry James
14,780 PointsWoohoo! Glad you got it sorted :)
Joshua Douce
13,120 PointsI also have this problem tried running as administrator but no joy.
Harry James
14,780 PointsHey Lukas!
It sounds like for some reason your user account does not have sufficient privileges to start the process.
Can you please try running Android Studio as an Administrator (You can do this in the right-click menu) if you are using a Windows system.
If you're not using Windows or you still have the issue, let me know and I'll see what else can be done :)
Harry James
14,780 PointsHarry James
14,780 PointsHey Joshua Douce and Lukas Keen - Could you please post the path to Git that you are using and getting the error on?
Thanks in advance! :)