'colorInversePrimary and colorShadow is missing in Theme.Material3.Light.NoActionBar

colorInversePrimary and colorShadow is missing in Theme.Material3.Light.NoActionBar
my material version is 'com.google.android.material:material:1.6.0-alpha03'

 <item name="colorInversePrimary">@color/md_theme_dark_inversePrimary</item>
    <item name="colorShadow">@color/md_theme_dark_shadow</item>

this two line. I get it from material-theme-builder, but when I add into my project it's coming as an error. Other colors are fine.



Solution 1:[1]

Seems like they are adding more color roles. For now, use the temporary fix with applying attrs.

<attr name="colorInversePrimary" format="reference|color" />
<attr name="colorShadow" format="reference|color" />

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Danijel Markov