I’ve just updated in Android Studio the Gradle version from 7.2 to 7.4.2 and as soon as it tries to build the project it fails with an exception:
A problem occurred configuring project ':app'. > The value for property 'buildConfigFields' cannot be changed any further.
Rolling back to 7.2 fixes the issues.
I was using a deprecated gradle plugin.
Answered By – remarcoble