title: Gradle won't work with android studio 3.0
body: <p>When I try to debug an Android app with Android Studio 3.0.1, it generates following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
  Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
  Error:Execution failed for task ':app:mergeDebugResources'.
  &gt; Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
  Information:BUILD FAILED in 6s
  Information:2 errors
  Information:0 warnings
  Information:See complete output in console
  </code></pre>
  
  <p>Any idea to get rid of that?</p>
  
  <p>The last lines of Gradle console shows following:</p>
  
  <pre class="lang-none prettyprint-override"><code>:app:mergeDebugResources
  Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
  :app:mergeDebugResources FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:mergeDebugResources'.
  &gt; Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 6s
  
  15 actionable tasks: 14 executed, 1 up-to-date
  </code></pre>