title: Retrofit 1.9 RestAdapter Cannot Resolve Symbol in Android Studio
body: <p>I'm following <a href="https://futurestud.io/blog/retrofit-getting-started-and-android-client/" rel="nofollow noreferrer">this tutorial</a> and have tried with many more and I always get error: <code>Cannot resolve symbol</code> for RestAdapter. So I googled and <a href="https://stackoverflow.com/questions/32424184/restadapter-retrofit-not-resolving-in-android">this SO question</a> with answer came up which say to include <code>compile 'com.squareup.retrofit:retrofit:1.9.0'</code> which I already have in my gradle dependencies:</p>
  
  <pre><code>dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:23.0.0'
  
      compile 'com.squareup.retrofit:retrofit:1.9.0' //As you can see here
      compile 'com.squareup.okhttp:okhttp:2.2.0'
      compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
  
  }
  </code></pre>
  
  <p>This is the class and method calling the error:</p>
  
  <pre><code>public class ServiceGenerator {
      public static final String API_BASE_URL = "http://your.api-base.url";
  
      private static RestAdapter.Builder builder = new RestAdapter.Builder()
              .setEndpoint(API_BASE_URL)
              .setClient(new OkClient(new OkHttpClient()));
  
      public static &lt;S&gt; S createService(Class&lt;S&gt; serviceClass) {
          RestAdapter adapter = builder.build();
          return adapter.create(serviceClass);
      }
  }
  </code></pre>