URL of codelab
In which task and step of the codelab can this issue be found?
Add Color
Describe the problem
- Add color palette to theme - Material Builder export has different color variable namings compared with the tutorial section
- Color mapping / Dynamic Color - Dynamic color is enabled by default in the project leading to issues with the Color mapping task (green color became default system gray)
Steps to reproduce?
Material Builder namings:
- Go to the Material Builder
- Create and export the color scheme
- Compare color variable names from the tutorial and the exported Color.kt (no idea why it shifted the color value). Example:
val md_theme_light_primary = Color(0xFF006C4C)
val primaryLight = Color(0xFF1F6A4E)
- Same issue can be seen in the Theme.kt files
Wrong color for the Color mapping section:
- Checkout to the starter branch of the Woof app
- Get to the Color mapping section - it's implied that the DogItem card color must be green
- In fact, DogItem card color is gray (light theme)
- Get to the Dynamic color section - the dynamicColor variable is already set to true
- Setting the dynamicColor to false restores green color to the DogItem card
Versions
Android Studio version: Otter | 2025.2.1
API version of the emulator: 36.1
URL of codelab
In which task and step of the codelab can this issue be found?
Add Color
Describe the problem
Steps to reproduce?
Material Builder namings:
val md_theme_light_primary = Color(0xFF006C4C)val primaryLight = Color(0xFF1F6A4E)Wrong color for the Color mapping section:
Versions
Android Studio version: Otter | 2025.2.1
API version of the emulator: 36.1