title: Can't Import Classes From Added Jar File In Android Studio
body: <p>Hi I'm working on Android app and I need to use an API which I'm only able to work with using a Jar. I add the Jar by copy/pasting the Jar into the libs folder and then choosing the "Add as Library" option. </p>
  
  <p>The problem is I can't import any of the classes included in the Jar file. </p>
  
  <p>The directory structure for the Jar looks like this.</p>
  
  <pre><code>*libs
    |--&gt;semantics3-api
         |--&gt;com.semantics3
               |--&gt;api
                    |--&gt;Products.java
                    |--&gt;...
               |--&gt;errors
                    |--&gt;Util.java
               |--&gt;Util.java
  </code></pre>
  
  <p>So for example if I try to import the Products class by saying "import com.semantics3.api.Products;" I get a "symbol not found error" on the word Products in that line and anytime I try to make a Products object. </p>
  
  <p>The odd thing is when writing the import statement Android Studio will offer * as the only autocomplete option to import everything under the com.semantics3 or api folders (so "import com.semantics3.<em>" or "import com.semantics3.api.</em>") but even if I do that I can't utilize the classes.</p>
  
  <p>Has anyone experienced something similar when working with added Jar files in Android Studio? How can I go about fixing this? I appreciate any help with this, thank you. </p>
  
  <p>Could it be an issue with my Jar file potentially? I used the jar command in the terminal to generate the jar from the source code if that helps.</p>