Search code examples
androidandroid-gradle-plugingradle-kotlin-dsl

Android Gradle Plugin 7.0.0 migration with Kotlin DSL


After migration AGP to 7.0.0, some declarations are deprecated and should be replaced by property. How to replace declarations as flavorDimensions or resConfigs when the property is just a value?


Solution

  • I overlooked that thoose values (flavorDimensions, resourceConfigurations...) are mutable, so I can simply add new value

    flavorDimensions.add("dimensionName")