I tried to load my project in this new Android Studio 3.0 Canary 1. It was running perfectly in my previous Android Studio Version 2.4 preview 7
flavorDimensions "mode"
productFlavors {
dev {
// Assigns this product flavor to the "mode" flavor dimension.
dimension "mode"
versionName "1.2"
versionCode 02
}
uat {
// Assigns this product flavor to the "mode" flavor dimension.
dimension "mode"
versionName "1.2"
versionCode 2
}
live {
// Assigns this product flavor to the "mode" flavor dimension.
dimension "mode"
versionName "1.0.1"
versionCode 01
}
}
This is working for me !! In your case you should just make a flavorDimensions variable and assign the value inside the dev block
flavorDimensions "anyvalue"
dev.initWith(buildTypes.debug)
dev {
dimension "anyvalue"
applicationIdSuffix ".dev"
}
This should help .