Android--Retrofit

Retrofit的使用

在github搜索retrofit点进去,里面有官网的链接,链接有个Gradle的依赖。嗯,在工程里导入依赖…如果有看Okhttp的依赖那部分,这里应该懂得怎么搞。

在这里插入图片描述

get请求,不带参:


   private static final String PATH = "http://192.168.137.1:8080";

    public void getRequest(View view){
        Retrofit retrofit

猜你喜欢

转载自blog.csdn.net/qq_43616001/article/details/104566068