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 trialKele Heart
1,039 PointsGradle error won't let me build or run project
I just randomly got this error following the android path. I went as far back as undoing to a point I knew it worked and it still gave me this error.
2 Answers
Evan Demaris
64,262 PointsIt could be an issue with file generation, which can sometimes be limited by permissions. I'd recommend trying to build the project while running in administrator mode; if that doesn't work, it may be a problem with your installation of Android Studio, in which case I'd recommend trying to install a different version and seeing if you have the same problem.
As you can have more than one Android Studio version installed at once, you should be able to test this without deleting or overwriting your current version.
Evan Demaris
64,262 PointsHi Kele,
Is this error occurring when you have Android Studio running as an admin? And have you been able to run the project before now, and this error just cropped up?
Kele Heart
1,039 PointsI haven't been running it as admin, and yes.