标签:targe android build def gradle and erro named dimens
android studio 3.0
Error:All flavors must now belong to a named flavor dimension.
在build.gradle中
android.defaultConfig 添加flavorDimensions "versionCode"
例如·:
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
flavorDimensions "versionCode"
}
...
Error:All flavors must now belong to a named flavor dimension.
标签:targe android build def gradle and erro named dimens
原文地址:https://www.cnblogs.com/lifan1998/p/9221089.html