public class LoginRequest extends GsonRequest<HttpModel<Login>> {
public LoginRequest(Map<String , String> params,Response.Listener<HttpModel<Login>> listener, Response.ErrorListener errlistener) {
super(Method.POST,url,(HttpModel<Login>).class, null, params, listener, errlistener);
}
}
超级有趣的第二个参数错误
该函数需要 Class<HttpModel<Login>>.class
答案 0 :(得分:0)
检查您的GsonRequest类。你传递错误的参数。您可以查看此链接以获取帮助
https://developer.android.com/training/volley/request-custom.html