Upgrading gradle version to 7.0.2 giving errors

I am trying to update my Gradle


version to 7.0.2 which is resulting in the following errors