本篇博客将和大家分享如何在项目中快速搭建Retrofit。关于Retrofit的基本使用方法网上的例子很多,大家可自行参考,这里,我也给大家分享几个比较好的入门文章,仅供参考:
https://gold.xitu.io/entry/579f1749a633bd006009eca4
首先要引入该库:
首先要引入该库:
compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit