【Bug记录-1】Androidstudio升级至3.1报错All flavors must now belong to a named flavor dimension

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yyanjun/article/details/81220669

1. 在Androidstudio(版本3.1)中module的build.gradle中添加productFlavors后build项目后会报如下错误。

  All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html    

解决方案:

在module—>build.gradle—>android 中添加  flavorDimensions "versionCode" 。也就是统一flavor的维度即可。

参考文章:https://blog.csdn.net/builder_taoge/article/details/78406734

猜你喜欢

转载自blog.csdn.net/yyanjun/article/details/81220669