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

Gradle download in Android takes forever. The download is about 50MB, but Android Studio is still busy - 3 hours!!

I've create a new project in Android Studio; the Fun Facts example. I am however stuck on the "Building 'FunFacts' Gradle project info screen. It says it's downloading Gradle. The Gradle zip is about 50 MB in size and doesn't take long when I download it directly through my browser. So it can't be my internet connection, but Android Studio is showing me screen for the past 3 hours!!

What is AS doing in the background and how can I fix this please?

1 Answer

Ok, so within Android Studio I went to File >> Invalidate Caches / Restart and then clicked "Invalidate and Restart". It got passed the Gradle download task, and are now downloading other tools and libraries

Sante Kotturi
Sante Kotturi
7,434 Points

Mine still takes forever. I'm going to post a question about the best way to download Gradle, I tried using Homebrew's version but long story, couldn't get it to work. Downloaded version 2.1 from their site but then Android Studio was complaining about wanting version 1.1.... Now it just takes forever to start a project :(

When you say 'within Android Studio I went...', what exactly do you mean? Is this within the installation files or via the interface itself?