title: Android Studio Keep saying Failed to complete Gradle execution
body: <p>Everything fine with the command line</p>
  
  <pre><code>gradle build
  </code></pre>
  
  <p>But Android Studio keep saying that</p>
  
  <pre><code>Failed to complete Gradle execution
  Cause:
  A fatal exeption has occurred. Program will exit
  </code></pre>
  
  <p>If I clear all the cache, and restart everything will be fine, but this dialog will easily comeback again (after a build fail). I guess that the increment build chain is not good, but the message is not helpful at all.</p>
  
  <p>Are there anythings I can do to get a more details message about what going on, why AndroidStudio Gradle failed? where can I put thing like <code>--stacktrace</code> in the Preferences of Android Studio?</p>