I am working on android studio and fetching some data from the web. I tried using OkHttpClient and also added jars to my project folder but still i am unable t
I see you are/were trying to compile with a jar you manually put in your libs folder. Is there a reason for this (such as you need that specific version of the library etc.)? In case you didn't notice, the lines are commented out - that means they will not be processed and thus not added to your application.
Possible solutions:
Try adding this to your dependencies instead:
compile 'com.squareup.okhttp3:okhttp:3.0.1'
You can add it right under
compile 'com.google.android.gms:play-services:8.4.0'
Source: https://github.com/square/okhttp