title: "Cannot resolve symbol" error - RetrofitError in Android Studio
body: <p>I have getting this error and not sure why. I will try to provide the information, but if you need something else to assist, let me know.</p>
  
  <p>code:</p>
  
  <pre><code>package com.brasiltradefx.btfxalerts;
  
  import android.app.ProgressDialog;
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  
  import java.io.IOException;
  import java.util.List;
  
  import retrofit.Call;
  import retrofit.Callback;
  import retrofit.Response;
  import retrofit.Retrofit;
  
  
  //Class having OnItemClickListener to handle the clicks on list
  public class MainAlertsActivity extends AppCompatActivity implements ListView.OnItemClickListener {
  
      //Root URL of our web service
      public static final String ROOT_URL = "http://contrariantradefx.info/";
  
      //Strings to bind with intent will be used to send data to other activity
      public static final String KEY_ALERT_ID = "key_alert_id";
      public static final String KEY_ALERT_Order = "key_alert_order";
      public static final String KEY_ALERT_Pair = "key_alert_pair";
      public static final String KEY_ALERT_Rate = "key_alert_rate";
      public static final String KEY_ALERT_Target = "key_alert_target";
      public static final String KEY_ALERT_Date = "key_alert_date";
  
      //List view to show data
      private ListView listView;
  
      //List of type books this list will store type Book which is our data model
      private List&lt;Alerts_book&gt; alerts;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main_alerts);
  
          //Initializing the listview
          listView = (ListView) findViewById(R.id.listViewAlerts);
          //Calling the method that will fetch data
          getAlerts();
  
          //Setting onItemClickListener to listview
          listView.setOnItemClickListener(this);
      }
  
      private void getAlerts(){
          //While the app fetched data we are displaying a progress dialog
          final ProgressDialog loading = ProgressDialog.show(this, "Fetching Data", "Please wait...", false, false);
  
          //Creating a rest adapter
          Retrofit retrofit = new Retrofit.Builder()
                  .baseUrl("https://api.github.com")
                  .build();
  
  
  
          //Creating an object of our api interface
          GitHubService service = retrofit.create(GitHubService.class);
  
          //Defining the method
  
          GitHubService (new Call&lt;List&lt;Alerts_book&gt;&gt;() {
  
  
              @Override
              public Response&lt;List&lt;Alerts_book&gt;&gt; execute() throws IOException {
                  return null;
              }
  
              @Override
              public void enqueue(Callback&lt;List&lt;Alerts_book&gt;&gt; callback) {
  
              }
  
              @Override
              public void cancel() {
  
              }
  
              @Override
              public Call&lt;List&lt;Alerts_book&gt;&gt; clone() {
                  return null;
              }
  
              public void success(List&lt;Alerts_book&gt; list, Response response) {
                  //Dismissing the loading progressbar
                  loading.dismiss();
  
                  //Storing the data in our list
                  alerts = list;
  
                  //Calling a method to show the list
                  showList();
              }
  
  
  
              @Override
              public void failure(RetrofitError error) {
                  //you can handle the errors here
              }
          });
      }
  </code></pre>
  
  <p><strong>Gradle says:</strong></p>
  
  <pre><code>:app:generateDebugAndroidTestResValues UP-TO-DATE
  :app:generateDebugAndroidTestResources UP-TO-DATE
  :app:mergeDebugAndroidTestResources UP-TO-DATE
  :app:processDebugAndroidTestResources UP-TO-DATE
  :app:generateDebugAndroidTestSources UP-TO-DATE
  :app:processDebugJavaRes UP-TO-DATE
  :app:compileDebugJavaWithJavac
  C:\Users\Deryk\AndroidStudioProjects\BTFXAlerts2\app\src\main\java\com\brasiltradefx\btfxalerts\MainAlertsActivity.java:108: error: cannot find symbol
              public void failure(RetrofitError error) {
                                  ^
    symbol: class RetrofitError
  C:\Users\Deryk\AndroidStudioProjects\BTFXAlerts2\app\src\main\java\com\brasiltradefx\btfxalerts\MainAlertsActivity.java:107: error: method does not override or implement a method from a supertype
              @Override
              ^
  C:\Users\Deryk\AndroidStudioProjects\BTFXAlerts2\app\src\main\java\com\brasiltradefx\btfxalerts\MainAlertsActivity.java:71: error: cannot find symbol
          GitHubService (new Call&lt;List&lt;Alerts_book&gt;&gt;() {
          ^
    symbol:   method GitHubService(&lt;anonymous Call&lt;List&lt;Alerts_book&gt;&gt;&gt;)
    location: class MainAlertsActivity
  3 errors
  
   FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:compileDebugJavaWithJavac'.
  &gt; Compilation failed; see the compiler error output for details.
  </code></pre>
  
  <ul>
  <li>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</li>
  </ul>
  
  <p>BUILD FAILED</p>
  
  <p>Total time: 13.054 secs</p>
  
  <p><strong>Gradle build:</strong></p>
  
  <pre><code>Error:(71, 9) error: cannot find symbol method GitHubService(&lt;anonymous Call&lt;List&lt;Alerts_book&gt;&gt;&gt;)
  Error:(107, 13) error: method does not override or implement a method from a supertype
  Error:(108, 33) error: cannot find symbol class RetrofitError
  C:\Users\Deryk\AndroidStudioProjects\BTFXAlerts2\app\src\main\java\com\brasiltradefx\btfxalerts\MainAlertsActivity.java
  </code></pre>