title: Android: Resource linking fails on test execution even when nothing has been changed
body: <p>I'm starting to get errors when I am executing a test for a release variant which was always working fine. The code has always been executed in a Docker container so we can ensure that the build will always be clean.</p>
  <p>Today for some reason with no changes at all to the code, I am starting to see errors on the test run:</p>
  <pre><code>Execution failed for task:
  am:processReleaseResources'.
  &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
     &gt; Android resource linking failed
       /.gradle/caches/transforms-2/files-2.1/ff28653768e2ccb1135467db3600af3a/core-1.7.0-alpha02/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
  </code></pre>
  <p>I've made some research about the error, but I only find errors related to another resource, but nothing about lStar. So far about, I have found that lStar is code added to Android 31 (Android 12) in particular, which makes no sense to me why it should start working on Android 12 if my compileSdkVersion value is 28.</p>
  <pre><code>&lt;declare-styleable name=&quot;ColorStateListItem&quot;&gt;
      &lt;!-- Base color for this state. --&gt;
      &lt;attr name=&quot;android:color&quot;/&gt;
      &lt;!-- Alpha multiplier applied to the base color. --&gt;
      &lt;attr format=&quot;float&quot; name=&quot;alpha&quot;/&gt;
      &lt;attr name=&quot;android:alpha&quot;/&gt;
      &lt;!-- Perceptual luminance applied to the base color. From 0 to 100. --&gt;
      &lt;attr format=&quot;float&quot; name=&quot;lStar&quot;/&gt;
      &lt;attr name=&quot;android:lStar&quot;/&gt;
  &lt;/declare-styleable&gt;
  </code></pre>
  <p>What could be the cause of this error even though nothing has been changed?</p>