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

前端 未结 5 2080
既然无缘
既然无缘 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:22

    You need to add the following libraries:

    compile 'com.squareup.okhttp:okhttp:2.2.0'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
    

提交回复
热议问题