title: Aapt error Android Studio
body: <p>I'm getting a Aapt error in all of my Android projects. 
  When searching for an solution I found using android.enableAapt2=false could help, but i'm constantly getting errors like;</p>
  
  <pre><code>Caused by: java.util.NoSuchElementException
      at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:80)
      at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:315)
      at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:263)
      at com.android.builder.internal.aapt.v1.AaptV1.makePackageProcessBuilder(AaptV1.java:202)
      at com.android.builder.internal.aapt.AbstractProcessExecutionAapt.makeValidatedPackage(AbstractProcessExecutionAapt.java:67)
      at com.android.builder.internal.aapt.AbstractAapt.link(AbstractAapt.java:34)
      at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:807)
      ... 56 more
  </code></pre>
  
  <p>I already reinstalled Android Studio, Android SDK and i tried deleting my settings files. 
  When i'm not using android.enableAapt2=false im getting </p>
  
  <pre><code>Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
  
      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)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      ... 1 more
  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>
  
  <p>I am using Android Studio 3.1.1 build 173.4697961. </p>
  
  <p>edit: I also tried to clean the project, as well as running .gradlew clean, rebuild ect.</p>
  
  <p>edit: I'm using Gradle 4.4 and Android Studio 3.1.1. I cleared the cache and restarted, also I deleted the .gradle/cache folder from my account </p>