As of com.android.tools.build:gradle:1.3.0
you'll 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"
}
}
}
In order to fix it one has to rename flavorDimension simply to dimension.
android {
flavorDimensions "store", "api"
productFlavors {
googleplay {
dimension "store"
}
amazon {
dimension "store"
}
pre21 {
dimension "api"
}
post21 {
dimension "api"
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With