https://segmentfault.com/q/1010000004657976
https://blog.csdn.net/wutongyu0123wutongyu/article/details/52132892
https://www.jianshu.com/p/3665d1900847
1.引入两个包
2.com.android.tools.build:gradle:使用3.4 而不是 3.6.3版本
另外请注意,AsyHttpClientHandler 使用类HttpClient,在post提交的时候,服务器端坐了重定向,会走到
public void onFailure(int i, Header[] headers, byte[] bytes, Throwable throwable)
i 为302.