Android studio 报错
All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html
在app的gradle中 的 android下添加
flavorDimensions "versionCode"
compileSdkVersion 28 defaultConfig { applicationId "com.lanyu96.loadinglayout" minSdkVersion 23 targetSdkVersion 28 versionCode 1 versionName "1.0" //解决报错 All flavors must now belong to a named ..... flavorDimensions "versionCode" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"