AndroidStudio升级3.0后报错,All flavors must now belong to a named flavor dimension.

在module下的build.gradle中添加一行代码即可解决:

android{
    ...
    flavorDimensions "versionCode"
    ...
}

你可能感兴趣的:(Android)