title: "AAPT2 error, check logs for datils " and depricted situation
body: <p>i have an issue when i try to generate a signed apk. my application works fine even when i build the apk android studio did not gave me any error.
  But when i try to generate a signed apk it gives me "AApt2 error".</p>
  
  <p>Obviusly i have already searched on google and i try to set "android.enableAAPT2=false" ut studio teels me that is depricted.</p>
  
  <p>tank you for your help and sorry for my english!
  But i'm only seventeen and i'm italian :S </p>
  
  <p>Those are the errors that i get:</p>
  
  <pre><code>org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:mergeReleaseResources'.
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
  Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:mergeReleaseResources'.
  Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeReleaseResources'.
  ... 62 more
  Caused by: com.android.build.gradle.tasks.ResourceException: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
      at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:296)
      at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
  ... 105 more
  Caused by: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
      at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:332)
      at com.android.ide.common.res2.DataMerger.mergeData(DataMerger.java:301)
      at com.android.ide.common.res2.ResourceMerger.mergeData(ResourceMerger.java:412)
      at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:285)
      ... 117 more
      Suppressed: java.lang.RuntimeException: Some file processing failed, see logs for details
          at com.android.builder.internal.aapt.QueuedResourceProcessor.waitForAll(QueuedResourceProcessor.java:121)
          at com.android.builder.internal.aapt.QueuedResourceProcessor.end(QueuedResourceProcessor.java:141)
          at com.android.builder.internal.aapt.v2.QueueableAapt2.close(QueueableAapt2.java:104)
          at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:293)
          at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
          at java.lang.Thread.run(Thread.java:745)
  Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
      at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
      at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
      at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
      at com.android.ide.common.res2.MergedResourceWriter.end(MergedResourceWriter.java:327)
      ... 120 more
  Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
      at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
      at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
      at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
      at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$compile$0(QueueableAapt2.java:136)
  Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
      at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:443)
      at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:395)
      at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:312)
      at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
  </code></pre>