我在“方法”部分得到了Request.Method的一个错误,它说“无法解析符号”,我不知道为什么。我正试图解析JSON来从一个网站中提取图像。
JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, getRequestUrl(10),
(String) null, new Response.Listener<JSONObject>()
{
@Override
public void onResponse(JSONObject response)
{
L.zT(this, response.toString());
}
}, new Response.ErrorListener()
{
@Override
public void onErrorResponse(VolleyError error)
{
}
});发布于 2015-10-23 08:03:51
你可能有错误的进口。签入Request的导入声明,并确保
com.android.volley.Request 而不是别的东西
https://stackoverflow.com/questions/33297411
复制相似问题