Skip to content Skip to sidebar Skip to footer

Link Dependencies For Specific Flavors With Dimensions

I'm developing an android app which has two types: free and premium. Each tier has 2 versions: lightweight and heavy. Here's the Gradle implenetation of this: flavorDimensions 'tie

Solution 1:

I was going by this section of the Android Studio manual which states that you need to declare explicitly any configurations that for flavor/build type combinations. In this case, that means you need to add the following to your build script before the dependencies {} block:

configurations {
    freeLightweightImplementation
    freeHeavyImplementation
    premiumLightweightImplementation
    premiumHeavyImplementation
}

Post a Comment for "Link Dependencies For Specific Flavors With Dimensions"