I am working on an Android studio and getting some data from the Internet. I tried using OkHttpClient and also added jars to my project folder, but still I can not import it.
Here can't resolve symbol okhttp . I tried some solution but could not solve the problem. Here is my build.gradle file
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.example.app" minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.google.android.gms:play-services:8.4.0' // compile files('libs/okhttp-3.0.1.jar') // compile files('libs/okio-1.6.0.jar') }
source share