not able to import com.squareup.okhttp.OkHttpClient;

前端 未结 5 2083
既然无缘
既然无缘 2020-12-10 13:46

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

5条回答
  •  鱼传尺愫
    2020-12-10 14:23

    Let gradle handle download and import for you:

    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 'com.squareup.okhttp3:okhttp:3.0.1'
    }
    

提交回复
热议问题