title: How to Add Stacktrace or debug Option when Building Android Studio Project
body: <p>I was trying to investigate the project build error in the console output as follow:</p>
  
  <pre><code>:myapp:processDebugResources FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:processDebugResources'.
  ...
  ...
  
  * 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 suspect it has something to do with resource not found error. My question is, at IDE level how can I add <code>--stacktrace</code> or <code>--debug</code> option so that it can produce more information for me to debug?</p>