title: Can't override onSuccess() method in JsonHttpResponseHandler
body: <p>I am learning restful services in <a href="http://www.raywenderlich.com/78578/android-tutorial-for-beginners-part-3" rel="nofollow noreferrer">http://www.raywenderlich.com/78578/android-tutorial-for-beginners-part-3</a></p>
  
  <p>while coming across </p>
  
  <pre><code> AsyncHttpClient client = new AsyncHttpClient();
          client.get(QUERY_URL + urlString,
          new JsonHttpResponseHandler() {
  
              @Override
  public void onSuccess(JSONObject jsonObject) {
  // Display a "Toast" message
  // to announce your success
  Toast.makeText(getApplicationContext(), "Success!",   Toast.LENGTH_LONG).show();
  
  // 8. For now, just log results
  Log.d("omg android", jsonObject.toString());
  }      
  @Override
  
  public void onFailure(int statusCode, Throwable throwable, JSONObject  error) {
  // Display a "Toast" message 
  // to announce the failure
  Toast.makeText(getApplicationContext(), "Error: " + statusCode + " " +    throwable.getMessage(), Toast.LENGTH_LONG).show();
  
  // Log error message
  // to help solve any problems
  Log.e("omg android", statusCode + " " + throwable.getMessage());
  }
          });
  </code></pre>
  
  <p>My gradle sync task was successful.But I couldn't figure out that why onSuccess method is enlightened as (Method does not override super class)</p>
  
  <p>Even I have changed the onSuccess() parameters to </p>
  
  <pre><code> public void onSuccess(int statusCode, org.apache.http.Header[] headers, JSONObject jsonObject)
  </code></pre>
  
  <p>and also I have followed all the solutions provided in the following links</p>
  
  <p><a href="https://stackoverflow.com/questions/32217737/method-does-not-override-or-implement-a-method-from-a-supertype-for-override">method does not override or implement a method from a supertype - for Override</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24809387/android-asynchttpclient-error">AndroidAsyncHttp Error</a></p>
  
  <p><a href="http://answered.site/-heres-my-mainactivityjava-the-part-of-the-code-it-occurs-in-the-querybooks/2950406/" rel="nofollow noreferrer">http://answered.site/-heres-my-mainactivityjava-the-part-of-the-code-it-occurs-in-the-querybooks/2950406/</a></p>
  
  <p>Even I have tried using interfaces also.And I am using async http 1.4.9
  So I have changed the gradle scripts as</p>
  
  <pre><code>dependencies {
  
      ...
  
      // there may or may not be a support library above these
      compile 'com.loopj.android:android-async-http:1.4.9'
      compile 'com.squareup.picasso:picasso:2.5.2'
  }
  </code></pre>
  
  <p>I have tried all the solutions available in stackoverflow and github.But still I couldn't clear that error and it is showing me onSuccess() and onFailure() methods doesn't override the superclass</p>