title: "org.json.JSONObject" missing "Request.Method.GET" and "com.android.volley" JsonObjectRequest arguments appear to out of order
body: <p>I am trying to make a GET request for some Json data with the &quot;com.android.volley&quot; module's JsonObjectRequest.</p>
  <p>The android development page (google's own website) shows the set up like this:</p>
  <pre><code>JsonObjectRequest jsonObjectRequest = new JsonObjectRequest
          (Request.Method.GET, url, null, new Response.Listener&lt;JSONObject&gt;() { ... } );
  </code></pre>
  <p>The order of the arguments being: 1. Method 2. url etc etc. HOWEVER, when I try this using Android studio, I get an error and it asks for the arguments in a different order. It wants, the url 1st and the method 2nd. Shouldn't be a problem, just enter the information in a different order, but there is another problem.</p>
  <p>It insists that the Method be of <code>org.json.JSONObject</code>, not <code>com.android.volley</code>. BUT, I can't find the <code>Request.Method.GET</code> from <code>org.json.JSONObject</code> in the auto drop-down selector in Android Stuido, and I have import <code>import org.json.JSONObject</code> in my code at the top of the page! So what the heck!? The only <code>Request.Method.GET</code> I can find is from <code>com.android.volley</code>, which doesn't seem to be accepted by the <code>JsonObjectRequest</code>. I don't know why.</p>
  <p>My Code: (pretty much all underlined in red the way it is)</p>
  <pre><code>import org.json.JSONArray;
  import org.json.JSONException;
  import org.json.JSONObject;
  import com.android.volley.toolbox.JsonObjectRequest;
  import java.io.IOException;
  
        &lt;more code here, but not relevent&gt;
  
          try{
  
              JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(getString(R.string.getAddress), Request.Method.GET, null, new Response.Listener&lt;JSONObject&gt;() {
                  @Override
                  public void onResponse(JSONObject response) {
                      try {
                          JSONArray array = response.getJSONArray(&quot;games&quot;);
                          JSONArray releventGames = new JSONArray();
                          for (int i = 0; i &lt; array.length(); i++) {
                              JSONObject game = array.getJSONObject(i);
                              String homeTeam = game.getString(&quot;hometeam&quot;);
                              String awayTeam = game.getString(&quot;awayteam&quot;);
                              if (homeTeam.contains(teamName) || awayTeam.contains(teamName)) {
                                  releventGames.put(game);
                              }
                          }
                      } catch (JSONException e) {
                          e.printStackTrace();
                      }
                  }
              });
  //            queue.add(jsonObjectRequest);
  //            JSONObjectResquest();
          }catch (IOException e){
              Log.i(&quot;getGames&quot;,&quot;Failed to Get games&quot;);
              e.printStackTrace();
          }
  </code></pre>
  <p>I also have <code>implementation 'com.android.volley:volley:1.1.1'</code> in my build dependencies.
  I tried 1.0.0 and 1.1.0 , neither solved my problem.</p>