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

Greg Mosley
Greg Mosley
2,495 Points

FYI will need to update this video, can no longer get the URL from their github account or docs, had to copy manually!

The documentation and github page for OKHTTP no longer has that implementation URL and I couldn't spot anything else that looked helpful (other than downloading the file but not sure if that works just as well).

In the end, I just copied the implementation line used in the video and updated the version number to the most recent version from their github page.

Might be worth calling this out in the teacher's notes as I've just spent 20 minutes trying to work out how to get OkHTTP into android studio (there were some articles saying it is included by default into android studio now, but I couldn't see anything within Android Studio to prove that).

Thanks!

1 Answer

Tonnie Fanadez
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tonnie Fanadez
UX Design Techdegree Graduate 22,796 Points

Hi Greg Mosley ,

Nice observation, I know it is hard to spend 20 minutes looking for the updated library. I am glad you figured out how to update. I think they did mention you can find the updated implementation on the Square's Github account

Anyway I have booked marked this site https://square.github.io/okhttp/ The latest implementation as per today is

implementation("com.squareup.okhttp3:okhttp:4.0.1")

Cheers