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 Build a Simple Android App (2014) Creating the Screen Layout Adding a Button

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

https://gyazo.com/8544b9c03840eda649dcdd0e8c94d33c

2 Answers

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

Hi 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?

I haven't been running it as admin, and yes.