title: IntelliJ cannot resolve any symbols or methods
body: <p><strong>IntelliJ IDEA 2017.2</strong></p>
  
  <p>I know this has been asked, but I have tried every fix I could find, as shown below.</p>
  
  <p>Every symbol in my java code has an error <code>Cannot resolve method</code>, or <code>Cannot resolve symbol</code>.  However, the code still compiles and runs with 0 errors.  The error messages in the IDE started the first time I opened the project, on 3 separate computers, but runs fine on a fourth....I can't find anything different on that fourth computer.</p>
  
  <p>I have following the following instructions from <a href="https://stackoverflow.com/questions/5905896/intellij-inspection-gives-cannot-resolve-symbol-but-still-compiles-code">this issue</a>:</p>
  
  <pre><code>File -&gt; Invalidate Caches / Restart
  
  I deleted the [IDEA system](https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs) directories, and re-imported the Maven project.
  
  I have re-imported the Maven project
  
  I re-imported the project with auto-import
  </code></pre>
  
  <p>I also followed the instructions from <a href="https://stackoverflow.com/questions/11632120/why-so-red-intellij-seems-to-think-every-declaration-method-cannot-be-found-res">this issue</a>:</p>
  
  <pre><code>File -&gt; Synchronize
  </code></pre>
  
  <p>then</p>
  
  <pre><code>File -&gt; Invalidate Caches / Restart
  </code></pre>
  
  <p>As well as the solutions <a href="https://stackoverflow.com/questions/26952078/intellij-cannot-resolve-symbol-on-import">here</a>:</p>
  
  <p>Check source roots</p>
  
  <pre><code>Ctrl+Alt+Shift+S
  </code></pre>
  
  <p>There were no errors or fixes in the Module source roots, or the module dependencies. </p>
  
  <p>I also tried re-importing with "Search for projects recursively" checked as recommended <a href="https://intellij-support.jetbrains.com/hc/en-us/community/posts/207108385-IntelliJ-not-able-to-resolve-classes-of-external-Libraries-for-Maven-projects" rel="nofollow noreferrer">here</a>.</p>
  
  <hr>
  
  <p><strong>Edit1</strong></p>
  
  <p>This isn't a screenshot from my actual code, but my errors look the same as the screenshots from <a href="https://intellij-support.jetbrains.com/hc/en-us/community/posts/207108385-IntelliJ-not-able-to-resolve-classes-of-external-Libraries-for-Maven-projects" rel="nofollow noreferrer">this post</a>.</p>
  
  <p><a href="https://i.stack.imgur.com/IjR4Q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IjR4Q.jpg" alt="enter image description here"></a></p>
  
  <p><strong>EDIT2</strong></p>
  
  <p>I just found an error I hadn't seen before.  When I go to Project Structure (Ctrl+Alt+Shift+S), under Libraries, I see the following errors.</p>
  
  <p><a href="https://i.stack.imgur.com/pCG29.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pCG29.png" alt="enter image description here"></a></p>
  
  <p>I checked on the location shown <code>/home/user/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7-sources.jar</code> and it doesn't exist.  I have <code>antlr-2.7.7.jar</code>, but I'm not sure if I need to download the antlr-2.7.7.7-sources.jar, or just point my Library to the .jar I have (as I'm unfamiliar what these settings do)</p>