title: Cannot resolve symbol 'execute' ... calling AsyncTask
body: <p>I am trying to make a <code>GET</code> request on a URL, I created a class extending <code>AsyncTask&lt;Void, Void, Void&gt;</code> and I try to call <code>new MyClass.execute()</code> ... I have done this before and it worked, today it is not working. What am I doing wrong?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class SignUpActivity extends AppCompatActivity {
  
  String TAG = SignUpActivity.class.getSimpleName();
  String URL;
  
  ArrayList&lt;String&gt; countries = new ArrayList&lt;&gt;();
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_sign_up);
  
      new MyClass.execute();
  }
  
  private class MyClass extends AsyncTask&lt;Void, Void, Void&gt; {
  
      @Override
      protected void onPreExecute() {
          super.onPreExecute();
          //TODO
      }
  
      @Override
      protected Void doInBackground(Void... params) {
          HttpHandler sh = new HttpHandler();
  
          // Making a request to url and getting response
          String jsonStr = sh.makeServiceCall(URL, "GET");
          //Handling response in jsonStr code 
          return null;
      }
  
      @Override
      protected void onPostExecute(Void result) {
          super.onPostExecute(result);
          //TODO
      }
  
  }
  </code></pre>