title: Unable to import Java class in Android studio
body: <p>Here is my directory structure within the "java" folder,</p>
  
  <p><a href="https://i.stack.imgur.com/uEmXj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uEmXj.jpg" alt="enter image description here"></a></p>
  
  <p>The problem is in my <code>MainActivity</code> file when I write.</p>
  
  <pre><code>import api.gitapi;
  import model.gitmodel;
  </code></pre>
  
  <p>I get a warning message saying "Unused Import"</p>
  
  <p>In my <code>MainActivity</code> file, I get an error on line,</p>
  
  <pre><code>gitapi git = restAdapter.create(gitapi.class);
  </code></pre>
  
  <p>and,</p>
  
  <pre><code>public void success(gitmodel gitmodel, Response response) {}
  </code></pre>
  
  <p>saying that the symbol <code>gitapi</code> and <code>gitmodel</code> cannot be resolved. I have tried "Invalidate caches/restart" but the problem still exists.</p>
  
  <p>Any help is appreciated, thanks in advance!</p>
  
  <p>PS: If it helps, I'm using <strong><a href="http://themakeinfo.com/2015/04/retrofit-android-tutorial/" rel="nofollow noreferrer">this tutorial</a></strong></p>