Android Build a Weather App Networking Getting the OkHttp Library Using Gradle

Greg Mosley
Greg Mosley
2,493 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
Tonnie Fanadez
UX Design Techdegree Graduate 22,767 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