1. 首页
  2. 数据库
  3. 其它
  4. Android Retrofit2数据解析代码解析

Android Retrofit2数据解析代码解析

上传者: 2021-01-31 21:16:35上传 PDF文件 47.08KB 热度 26次
在弄数据解析这块,浪费了很长的时间,最开始一直觉得传过来用对象接收的,类型是json,往那个方式去想了。搞了很久。 后来看了别人写的才发觉,真是很简单,感谢 https://www.jianshu.com/p/d0081e8a7edc 给我启发。 加入的jar包 // Retrofit库 implementation ‘com.squareup.retrofit2:retrofit:2.0.2’ implementation ‘com.squareup.retrofit2:converter-gson:2.0.2’ 服务端传过来的数据: { “code”:0, “resultMsg”:
下载地址
用户评论