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 Weather App (2015) Networking Making an HTTP GET Request with OkHttp

Evans Attafuah
Evans Attafuah
18,277 Points

Gradle & Dependencies

When using Gradle, do I need to download code libraries manually? All the documentations I have seen says, download library and add line to Gradle. Just wanted to clarify this.

2 Answers

Hi Evans,

In my experience, you just add a line in the gradle code and the download happens in the background.

Gradle can be a bit of a hassle at times but once it is working it is usually pretty stable. And it is a great way of adding libraries - so easy!

Steve.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

In the old days (haha) you had to download the libraries and add them to your project one way or another. Now this is accomplished automatically by Gradle by adding a dependency in the build.gradle file. This is a feature known as "dependency management", meaning that the Gradle build system will automatically download and include any code we list as a dependency for our own project. It is by far my favorite thing about Gradle.