Android框架排行榜
1.Retrofit
一句话介绍:Retrofit是一款类型安全的网络框架,基于HTTP协议,服务于Android和java语言上榜理由:Retrofit以21.8k的stars量雄踞github中android子标题榜首,第一当之无愧。
官网地址 http://square.github.io/retrofit/
github https://github.com/square/retrofit
作者:square团队
使用:compile 'com.squareup.retrofit2:retrofit:2.3.0
2、okhttp
一句话介绍:okhttp是一款基于HTTP和HTTP2.0协议的网络框架,服务于java和android客户端上榜理由,okhttp以20.4k的stars量雄踞github中android子标题第二名。大型公司比如淘宝也封装的是okhttp。Retrofit2.0开始内置okhttp框架,Retrofit专注封装接口完成业务需求,okhttp专注网络请求的安全高效,笔者将两者区分开,是想让后来学习者知道,这是两套框架,学习框架原理时可以分开学习,以免理解混乱。
官网地址 http://square.github.io/okhttp/
github https://github.com/square/okhttp
作者:square团队
使用:compile 'com.squareup.okhttp3:okhttp:3.9.1'