title: Gradle Build Failed - Flutter
body: <p>When I try to run flutter application it gives this build error</p>
  
  <pre><code>FAILURE: Build failed with an exception.                                
  
  * What went wrong:                                                      
  Execution failed for task ':app:compileDebugJavaWithJavac'.             
  &gt; Could not create service of type DefaultGeneralCompileCaches using 
    GradleScopeCompileServices.createGeneralCompileCaches().
  </code></pre>
  
  <p>So far what I tried</p>
  
  <ul>
  <li>Flutter clean</li>
  <li>Invalidate &amp; Restart</li>
  <li>Tried to stop and restart gradle daemon</li>
  <li>Copied classes to different project </li>
  </ul>
  
  <p>Here are the dependencies, I am using</p>
  
  <pre><code>dependencies:
   flutter:
     sdk: flutter
   splashscreen:
  
   cupertino_icons: ^0.1.2
   english_words: ^3.1.0
   http: ^0.12.0+2
   progress_dialog: ^1.1.0+1
  </code></pre>
  
  <p>I am pretty sure this has to do something with my current project because I tried to create a new project and it is working. I searched online but got nothing</p>