Started learning Jetpack Compose. An error occurred: Type mismatch: inferred type is Dp but CardElevation was expected, I can't understand what the problem is, tell me how to solve it.
import androidx.compose.ui.unit.dp library imported, and updated versions of Jetpack Compose, expected to help
If you are using Material 3, then you need to use CardElevation in this way:
More details here