如何在 Android 中使用 Retrofit? [英] how to use Retrofit in Android?

查看:76
本文介绍了如何在 Android 中使用 Retrofit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难理解我的应用程序的改造.我想在其中使用改造,但我对此不太了解.

I am having a hard time in understanding the Retrofit for my App. I want to use retrofit in it but I am not understanding about it much.

里面的一切都很混乱.任何人都可以帮助我完全学习它我不知道如何开始以及从哪里开始

Everthing is very confusing in it. Can any one help me to learn it completely I dont know how to start and from where to start

我在学习过程中经历的链接如下:

推荐答案

首先,你有许多不同的库可以代替 Retrofit 使用,基本的我认为最简单的是 Okhttp 但你必须明白 Okhttp 不再受支持,但在你降级 SDKVersion 时仍然有效,你可以使用 Volley执行与 Retrofit

First you have many different library you can use instead of Retrofit , the basic one and i think the simplest is Okhttp but you have to understand that Okhttp is no more supported but still work when you downgrade your SDKVersion , and you can use Volley to perform the same service as Retrofit

这篇关于如何在 Android 中使用 Retrofit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆