Skip to content

Fix deprecated build configuration warning #92

@callebtc

Description

@callebtc

Description:
The build generates a deprecation warning:

WARNING: The option setting 'android.defaults.buildfeatures.buildconfig=true' is deprecated.
The current default is 'false'.
It will be removed in version 10.0 of the Android Gradle plugin.

Impact:
Build will fail in future Android Gradle Plugin versions.

Fix Instructions:
Add the following to app/build.gradle.kts in the android block:

android {
    // ... existing config ...
    
    buildFeatures {
        buildConfig = true
    }
}

Alternative:
If BuildConfig is not needed, remove the deprecated setting and update code that references BuildConfig.

Files to Modify:

  • app/build.gradle.kts

Priority: Medium - will become critical in future AGP versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions