title: Failed linking references - style attribute '@android:attr/textColor' not found in appcompat
body: <p>I'm trying to get rid of the soon-to-be-removed option <code>android.enableAapt2=false</code> from our project. It's been painful, but I hope I'm getting there.</p>
  
  <p>Now I'm stuck with a <code>BuildException: Failed to process resources, see aapt output above for details</code>.</p>
  
  <p>The issue seems to be this:</p>
  
  <pre><code>error: style attribute '@android:attr/textColor' not found.
  Message{kind=ERROR, text=error: style attribute '@android:attr/textColor' not found., 
  sources=[/Users/&lt;username&gt;/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/4215c9c9bb2efc5bb086ff343ac44128/res/values/values.xml], 
  original message=, tool name=Optional.of(AAPT)}
  </code></pre>
  
  <p>I've found the following question and answer, but I believe it's a bit different when it's not in our own project it's happening: <a href="https://stackoverflow.com/questions/49683234/cannot-complete-gradle-build-failed-linking-references">Cannot complete Gradle Build, failed linking references</a></p>
  
  <p>What's the reason for this happening and how can I solve it?</p>
  
  <p>The specs:</p>
  
  <blockquote>
    <p>Android Studio 3.1.2<br>
    JRE: 1.8.0_152-release-1024-b01 x86_64<br>
    buildToolsVersion: 27.0.3<br>
    Gradle: 4.6<br>
    Gradle plugin: 3.1.2  </p>
  </blockquote>
  
  <p><strong>Edit:</strong><br>
  Just in case I removed every single line of styles and attributes from our project and did a clean build and invalidation of cache and restart and everything, but the build was still pointing its finger at the <code>values.xml</code> of <code>com.android.support:appcompat-v7:27.1.1</code>.</p>