productFlavors main ~ Gradle Error: Multiple entries with same key: main=[] and main=[]

Viewed 103

When I increased gradle version to gradle-7.3.3 from gradle-7.2, I receive a gradle sync error which is saying Multiple entries with same key: main=[] and main=[].

When I change my productFlavors name to mainCore or something else then main, gradle syncs without an error.

I'd like to know how to keep using main productFlavor. Any ideas?

build.gradle(app):
    .....
flavorDimensions "mode", "client"
        productFlavors {
            /////// Distribution Modes ///////
            main {
                dimension "mode"
                versionName generateVersionName()
                manifestPlaceholders = [
                        app_label: "@string/app_name",
                        appIcon: "@mipmap/ic_launcher",
                        appIconRound: "@mipmap/ic_launcher_round"
                ]
            }
            beta {
                dimension "mode"
                applicationIdSuffix ".beta"
                manifestPlaceholders = [
                        app_label: "@string/app_name",
                        appIcon: "@mipmap/ic_launcher_beta",
                        appIconRound: "@mipmap/ic_launcher_beta_round"
                ]
            } .....
0 Answers
Related