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

Safira Nugroho
Safira Nugroho
3,910 Points

Failed to resolve: com.squareup.okhttp:okhttp:2.3.0

Hi! I was wondering if anyone can tell me what the error above means? Does it mean that the OkHttp files are just not done downloading or do I need to do something to resolve it?

Thank you!

1 Answer

Hiya,

I've got the line:

compile 'com.squareup.okhttp:okhttp:2.3.0'

In the Build.gradle (Module: app) file. Are you online? If you have no connection, it would fail to resolve.

You could try restarting Android Studio to force a Gradle Sync, or use 'Invalidate caches/restart'. That may help.

Steve.