The value for property 'buildConfigFields' cannot be changed any further

Issue

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.

Any ideas?

Solution

SOLVED

I was using a deprecated gradle plugin.

Deprecated: com.google.secrets_gradle_plugin

New: com.google.android.libraries.mapsplatform.secrets-gradle-plugin

Answered By – remarcoble

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published