Gradle build failure - Could not get unknown property 'project' for ProductFlavor_Decorated


I am running into this issue while upgrading from build tools version 28.0.3 to 29.0.2 for my Android project.

The issue is where flavor1 is created:

flavorDimensions 'brand'
productFlavors {
    flavor1 { <<<< issue is here for some reason
        dimension 'brand'
        applicationId "..."
        manifestPlaceholders = ...
        resValue "string", "app_name", "App name"

Anyone have an idea what is going on? It is the same exact issue as this stackoverflow

1 Like