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 Getting the OkHttp Library Using Gradle

How do I handle the update to the Gradle on Github?

In the video, we are told do get "compile 'com.squareup.okhttp:okhttp:2.1.0'" but this is not what is currently on GitHub.

GitHub has the following: "testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'" This starts with testCompile rather than compile like in the video.

What is the difference between the two? And how would I handle them?

1 Answer

Jacob Bergdahl
Jacob Bergdahl
29,118 Points

Use "compile 'com.squareup.okhttp:okhttp:2.4.0'", which can be found on https://github.com/square/okhttp. You scrolled too far down.