Upgraded to Android 2022.1.1 Patch 1 and now my project does not work

I get the error:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

Any suggestions?

That should be only a warning telling you that some things might break once you update to Gradle 8.

While Gradle 8 was released yesterday, Android Studio still updates to Gradle 7.5 in its update assistant, so unless you have updated to gradle 8 yourself, it should’t cause issues yet.

Ok. It was in red and would not build though so I ended up rolling back to Android 2021.1 Bumble bee and it works again now.