Class Unit was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.8.0.
Gradle scripts -> gradle properties -> id("org.jetbrains.kotlin.android") version "1.8.10" apply false: pod verzí 1.8.10 budou tečky. Kliknout na ně. Zvýší se to na verzi 2.2.0.
Ale skončí to novou chybou:
Starting in Kotlin 2.0, the Compose Compiler Gradle plugin is required
when compose is enabled. See the following link for more information:
Finální řešení bylo náhodné. Začal jsem zkoušet všechna řešení, která jsem našel. Něco fungovalo, ale nevím co.