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
OkHttpClient
Gradle should have a line like this
implementation 'com.squareup.okhttp3:okhttp:3.0.1'
and this is how you import it
import okhttp3.OkHttpClient;
Because OkHttpClient has been moved from package com.squareup.okhttp to okhttp3 in the last version.
com.squareup.okhttp
okhttp3
More details are here and here