What happens if you explicitly specify compose-ui and compose-runtime versions in that module giving the error. It seems that you are depending on some library that brings transitive dependencies with different versions of what you have. Explicitly specify the version
implementation("ab:ac:2.0")
or try resolution strategy API see if it works