title: Android studio 3.0.1 new project: AAPT2 Execution Exception
body: <p>I created a new project in Android Studio 3.0.1 and during the build process I am getting aapt2 exceptions. Disabling aapt2 is an option but I want to understand why aapt2 is failing to build.</p>
  
  <p>Let me know if any additional details are required</p>
  
  <hr>
  
  <h2>Gradle Console Output:</h2>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Execution failed for task ':app:mergeDebugResources'.</p>
  
  <blockquote>
    <p>Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details</p>
  </blockquote></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
  </ul>
  
  <p>BUILD FAILED in 1s</p>
  
  <hr>
  
  <h2>Console output with --info flag:</h2>
  
  <pre><code>AAPT warning(1028621614), Job(QueuedJob{
  title=Compiling values.xml, 
  task={from=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml, to=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\res\merged\debug}, 
  future=com.google.common.util.concurrent.SettableFuture@7d83ce1d}): Done
  Exception while processing job : QueuedJob{
  title=Compiling values.xml, 
  task={from=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml, to=C:\Users\svssrinivas\AndroidStudioProjects\Learn\app\build\intermediates\res\merged\debug}, 
  future=com.google.common.util.concurrent.SettableFuture@7d83ce1d} : com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  Process (412248382) processed 0 files
  Thread(queued-resource-processor_54): Process(412248382), after shutdown queue_size=2
  Slave 1566465306 is ready
  Process (197581388) processed 0 files
  Thread(queued-resource-processor_55): Process(197581388), after shutdown queue_size=2
  Process (1933852165) processed 1 files
  Thread(queued-resource-processor_53): Process(1933852165), after shutdown queue_size=1
  Process (1566465306) processed 0 files
  Thread(queued-resource-processor_56): Process(1566465306), after shutdown queue_size=0
  Shutdown finished in 9ms
  Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  :app:mergeDebugResources FAILED
  :app:mergeDebugResources (Thread[Task worker for ':',5,main]) completed. Took 0.561 secs.
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:mergeDebugResources'.
  &gt; Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 1s
  
  7 actionable tasks: 1 executed, 6 up-to-date
  </code></pre>
  
  <p>Edit:</p>
  
  <p>Full Gradle Output:</p>
  
  <pre><code>Executing tasks: [:app:assembleDebug]
  
  Configuration on demand is an incubating feature.
  Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location 'D:\AndroidSDK\add-ons\addon-google_apis-google-19-1' (Expected 'D:\AndroidSDK\add-ons\addon-google_apis-google-19')
  Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location 'D:\AndroidSDK\add-ons\addon-google_apis-google-19-1' (Expected 'D:\AndroidSDK\add-ons\addon-google_apis-google-19')
  :app:preBuild UP-TO-DATE
  :app:preDebugBuild UP-TO-DATE
  :app:compileDebugAidl UP-TO-DATE
  :app:compileDebugRenderscript UP-TO-DATE
  :app:checkDebugManifest UP-TO-DATE
  :app:generateDebugBuildConfig UP-TO-DATE
  :app:generateDebugResValues UP-TO-DATE
  :app:generateDebugResources UP-TO-DATE
  :app:mergeDebugResources
  values_values.arsc.flat: error: failed to open.
  
  
  Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
  :app:createDebugCompatibleScreenManifests
  :app:processDebugManifest
  :app:splitsDiscoveryTaskDebug
  :app:prepareLintJar UP-TO-DATE
  :app:compileDebugNdk NO-SOURCE
  :app:mergeDebugShaders
  :app:compileDebugShaders
  :app:generateDebugAssets
  :app:mergeDebugAssets
  :app:mergeDebugJniLibFolders
  :app:transformNativeLibsWithMergeJniLibsForDebug
  :app:transformNativeLibsWithStripDebugSymbolForDebug
  :app:processDebugJavaRes NO-SOURCE
  :app:validateSigningDebug
  :app:mergeDebugResources FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:mergeDebugResources'.
  &gt; Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: 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 24s
  
  18 actionable tasks: 11 executed, 7 up-to-date
  </code></pre>