OkHttp in android for making network requests

前端 未结 8 1625
北海茫月
北海茫月 2020-12-29 08:18

What I am trying to do::

I am trying to learn the usage of Okhttp for making networking calls in android


What I have done

8条回答
  •  感情败类
    2020-12-29 09:02

    You only need to replace: This:

    Response response = client.execute(request);
    

    By:

    Response response = client.newCall(request).execute();
    

提交回复
热议问题