If you have this problem in your Composable Preview, you can downgrade the API level like this
@Preview(apiLevel = 34)
Or update your Android Studio