错误提示:
Volley: [9710] BasicNetwork.performRequest: Unexpected response code 301 …
最开始使用genymotion模拟器,以为是模拟器网络设置问题导致(模拟器能正常联网)。更换真机后测试,仍然是这样。
301错误码,网络搜索大致是重定向问题。搜索——
https://stackoverflow.com/questions/17481964/android-volley-to-handle-redirect
原因是协议搞错,本来是https协议,误写为http,修改过后即解决。