defaultConfig contains custom resource values, but the feature is disabled

After upgrading Android Gradle Plugin (AGP) 8+, many developers see the warning: “defaultConfig contains custom resource values, but the…