"flavorDimension" will be removed using the Android Gradle Plugin 2.0, it will be replaced by "measurement",

As of com.android.tools.build:gradle:1.3.0 you will get 'flavorDimension' will be removed by Android Gradle Plugin 2.0, it has been replaced by 'dimension'.

This is my build file:

build.gradle

 android { flavorDimensions "store", "api" productFlavors { googleplay { flavorDimension "store" } amazon { flavorDimension "store" } pre21 { flavorDimension "api" } post21 { flavorDimension "api" } } } 
+7
android gradle
source share
1 answer

To fix this, simply rename flavorDimension to a dimension.

 android { flavorDimensions "store", "api" productFlavors { googleplay { dimension "store" } amazon { dimension "store" } pre21 { dimension "api" } post21 { dimension "api" } } } 
+9
source share

All Articles