From what I have experienced, the easiest way is to apply every updates you need in the suggestions tab of the project structure then apply it and reload your gradle project. In my case it fixed itself but you might also want to check your libs.versions.toml file and fix the warnings if you have some.