I want to add okhttp to my project but even after i added it , android studio says Cannot resolve symbol for OkHttpClient
OkHttpClient client = new OkHttpClient();
I want to add okhttp to my project but even after i added it , android studio says Cannot resolve symbol for OkHttpClient
OkHttpClient client = new OkHttpClient();
Just Add this dependency in your build.gradle file
compile 'com.squareup.okhttp3:okhttp:3.1.2'
and build the project your problem will get solved.
If you want to add a JAR file to your project, then do following steps:
Copy the JAR file into folder app/libs
.
Right click on the JAR file and select "add as library".