Fixing the “Build Type contains custom BuildConfig fields, but the feature is disabled” error w/ buildConfigField
Answering my own question — there is a quick solution. Try adding the following line to gradle.properties, and the problem should hopefully stop bothering you (for now): android.defaults.buildfeatures.buildconfig=true Or, per @Scott_AGP’s answer, it may be better to add this to build.gradle instead of changing gradle.properties: android { buildFeatures { buildConfig = true } } This … Read more