Changing Material Components style attributes fails : <p>I am trying to change the style attributes from the <a href="https://material.io/develop/android/docs/getting-started/" rel="noreferrer">Material Components Theme</a> (like <code>colorPrimaryVariant</code>, <code>colorOnSecondary</code> and so on) but I get the following error:</p>

<pre><code>Android resource linking failed
Output:      C:\...\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:3835: error: style attribute 'attr/colorPrimaryVariant (aka com.sample.app:attr/colorPrimaryVariant)' not found.
C:\...\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:3836: error: style attribute 'attr/colorOnPrimary (aka com.sample.app:attr/colorOnPrimary)' not found.
C:\...\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:3839: error: style attribute 'attr/colorSecondaryVariant (aka com.sample.app:attr/colorSecondaryVariant)' not found.
C:\...\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:3840: error: style attribute 'attr/colorOnSecondary (aka com.sample.app:attr/colorOnSecondary)' not found.
error: failed linking references.
</code></pre>

<p>This is what my theme looks like:</p>

<pre><code>&lt;resources&gt;

    &lt;!-- Light application theme --&gt;
    &lt;style name="CBTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"&gt;
        &lt;item name="colorPrimary"&gt;@color/cbPrimary&lt;/item&gt;
        &lt;item name="colorPrimaryDark"&gt;@color/cbPrimaryDark&lt;/item&gt;
        &lt;item name="colorPrimaryVariant"&gt;@color/cbPrimaryDark&lt;/item&gt;
        &lt;item name="colorOnPrimary"&gt;#FFFFFF&lt;/item&gt;
        &lt;item name="colorAccent"&gt;@color/cbAccent&lt;/item&gt;
        &lt;item name="colorSecondary"&gt;@color/cbAccent&lt;/item&gt;
        &lt;item name="colorSecondaryVariant"&gt;@color/cbAccentLight&lt;/item&gt;
        &lt;item name="colorOnSecondary"&gt;#FFFFFF&lt;/item&gt;
        &lt;item name="colorError"&gt;@color/cbRed&lt;/item&gt;

        &lt;item name="android:windowBackground"&gt;@color/lightThemeBackground1&lt;/item&gt;
    &lt;/style&gt;

    [...]

&lt;/resources&gt;
</code></pre>

<p>If I don't add the four affected attributes everything works fine. My minSdkVersion is 16, compileSdkVersion and targetSdkVersion are 28. I also tried to use the Bridge themes but I get the same error. I double-checked my dependencies and everything seems correct. What am I missing?</p>
