in my case I upgraded the KTOR library and now I got the message "The binary version of its metadata is 2.0.0, expected version is 1.8.0."
Finally the solution was to upgrade to the latest version of Gradle from 8.4 to 8.11.1