title: Cannot import realm classes in Android Studio
body: <p>I'm using android studio 2.1.3, gradle version 2.1.3 , realm 2.2.1 and java 8</p>
  
  <p>I can import classes like </p>
  
  <pre><code>io.realm.Realm;
  io.realm.RealmQuery;
  io.realm.RealmResults;
  </code></pre>
  
  <p>and project compiles successfully</p>
  
  <p>but I cannot import classes like </p>
  
  <pre><code>io.realm.SyncCredentials;
  io.realm.ObjectServerError;
  io.realm.SyncUser;
  </code></pre>
  
  <p>basically object server related classes.
  for some reason studio cannot find those classes. I've included correct code in both the build.gradle files.</p>
  
  <p>any suggestions ?</p>