title: Android Volley: Cannot resolve Constructor jsonobjectrequest
body: <p>I am trying to use volley to fetch JSON and parse. But android studio says cannot resolve constructor jsonobjetrequest. I am not able to understand what is the mistake. The following is the code.</p>
  
  <pre><code>JsonObjectRequest jsObjRequest = new JsonObjectRequest
                  (Request.Method.GET, JSON_URL, null, new Response.Listener&lt;JSONObject&gt;() {
  
                      @Override
                      public void onResponse(JSONObject response) {
                          try{
                              JSONArray routes = response.getJSONArray("routes");
                          }
                          catch (JSONException e) {
                              e.printStackTrace();
                              Toast.makeText(getApplicationContext(),
                                      "Error: " + e.getMessage(),
                                      Toast.LENGTH_LONG).show();
                          }
                      }
                  }, new Response.ErrorListener() {
                      @Override
                      public void onErrorResponse(VolleyError error) {
                          VolleyLog.d(TAG, "Error: " + error.getMessage());
                          Toast.makeText(getApplicationContext(),
                                  error.getMessage(), Toast.LENGTH_SHORT).show();
                      }
                  });
  </code></pre>