title: Importing Anything in a Module Leads to 'Cannot resolve symbol' Error in Android Studio
body: <p>I simply wanted to create a Jar archive (.jar file) out of my classes using Android Studio. To do so, I created a module using <strong>File > New > New Module > Java Library</strong>. Then I wrote two classes (LocationAndroidPlugin, MyLocationService) in the module:</p>
  
  <p><a href="https://i.stack.imgur.com/qC7jF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qC7jF.png" alt="enter image description here"></a></p>
  
  <p>But Android Studio complains that it cannot resolve the import statements in the classes:</p>
  
  <p><a href="https://i.stack.imgur.com/wAFgG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wAFgG.png" alt="enter image description here"></a></p>
  
  <p>I tried <strong>File > Invalidate Cache</strong> in vain.</p>
  
  <p>My Android Studio version is:
  Android Studio 2.3.1
  Build #AI-162.3871768, built on April 1, 2017
  JRE: 1.8.0_112-release-b06 amd64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o</p>