在 Volley 中找不到符号 class newRequestQueue

cannot find symbol class newRequestQueue in Volley

我收到这个错误

Error:(42, 38) error: cannot find symbol class newRequestQueue
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.

在线:

RequestQueue queue=new Volley.newRequestQueue(this);

找到问题了。 new 不应出现在最后一行。

RequestQueue queue = Volley.newRequestQueue(this);