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
gramjoirps
2,048 PointsWhy is Gradle downloaded each and every time? (Android Studio)
Why is Gradle downloaded each and every time? (Android Studio)
It uses much of internet bandwidth and takes time to import or create a project.
2 Answers
Sante Kotturi
7,434 PointsHey,
I had the same problem and was very frustrated. Fortunately there's an answer! You have to download gradle and install it on your computer, then go into Android Studio and tell it where you installed Gradle.
I had some difficulty with this to begin with but this post contains all the info you need: https://teamtreehouse.com/forum/best-practice-for-installing-gradle
There are two solutions mentioned in that post, 1) using homebrew 2) installing the normal Gradle package.
the first is a mac solution (that didnt go so well) so I ended up doing #2. Although if you're on a mac this is probably the best way to do it, it is totally do-able.
If you're not on Mac then I recommend going to: http://www.gradle.org/downloads Downloading the first option, unzipping the download and putting the grade-2.2 folder somewhere safe (ie. not in Downloads).
Then open up Android Studio and enter the location of where you unpacked Gradle here: Android Studio > Preferences > Gradle > Service Directory Path
What operating system are you on? I can provide more specific instructions if it's still not working for you.
Good luck and happy Gradling!
gramjoirps
2,048 PointsAwesome reply, Thanks buddy
Sante Kotturi
7,434 PointsNo problem, got it all working?