I'm trying to understand Android Compose Animation and I get this error
import androidx.compose.animation.animateColorAsState
...
val backgroundColor by animateColorAsState(if (isSelected) Color.Red else Color.Transparent)
Android Studio highlights animateColorAsState in red and writes " Unresolved reference: animateColorAsState"