title: IntelliJ won't recognize some imports from gradle project
body: <p>I am working on a Gradle project in IntelliJ and some packages are not recognized by IntelliJ. When I go to Project Structure -> Modules -> <code>&lt;my module&gt;</code> -> Dependencies, the jar file that contains these packages is there. (I've examined the jar file with <code>jar tfv &lt;file&gt;</code> to make sure that the classes in question are in the file.)</p>
  
  <p>The classes in question are in red and when hovering over them, I get errors like "Cannot resolve symbol 'somepackagename'" or "Cannot resolve symbol 'SomeClassName'".</p>
  
  <p>However, the gradle project compiles just fine from the command line.</p>
  
  <p>I've tried all the existing suggestions I could find, but so far none have helped. Primarily, I've already tried:</p>
  
  <ul>
  <li>Deleting the .idea folder and re-importing</li>
  <li>Reimporting the project from the root build.gradle file</li>
  <li>Clicking on the "Refresh all gradle projects" button</li>
  <li>Upgrading IntelliJ</li>
  <li>Clicking on "Invalidate Caches and Restart"</li>
  </ul>
  
  <p>What can I do to get IntelliJ to recognize the packages in these jar files?</p>