title: Java program not compiling IntelliJ Idea
body: <p>I'm trying to compile my java project in Intellij IDEA, however upon click <code>Build</code> it throws the following error:</p>
  
  <pre><code>2:21:43 PM: Executing external tasks ':classes :testClasses'...
  :compileJava FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':compileJava'.
  &gt; java.lang.IllegalArgumentException
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  </code></pre>
  
  <p>I don't have any visible errors in code that should have been pointed out by lint if there existed any errors.</p>
  
  <p>I have tried putting <code>--stacktrace</code> command in <code>File -&gt; Settings -&gt; Build, Execution, Deployment -&gt; Compiler -&gt; Java Compiler</code> &amp; <code>File -&gt; Settings -&gt; Build, Execution, Deployment -&gt; Compiler -&gt; Gradle-Android Compiler  -&gt; Command line Options</code></p>
  
  <p>But I still get the same error upon building the code without a stacktrace.</p>
  
  <p>What should I do to fix it?</p>
  
  <p>Build Configuration:</p>
  
  <p><a href="https://i.stack.imgur.com/UunU8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UunU8.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/90OZm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/90OZm.png" alt="enter image description here"></a></p>
  
  <p><strong><em>IDE version: IntelliJ IDEA 2017.1.4 Community Edition.</em></strong></p>