add kotlin = "2.0.0" in your libs.versions.toml to upgrade to kotlin 2.0. After that everything worked for me.
kotlin = "2.0.0"
libs.versions.toml