Did it all what was in previous answers , but it didnt work. Then upgraded the SDK , its tools and Android Studio itself. Then Gradle version. But it kept stay same red . Then I got in last libs I ve added in module build.gradle.kts and removed last 5 libs from there and from libs.versions.toml. As it was all ok before them. Then gradually added them one by one and that finally got compiled and ran on the emulator.