本文介绍了Android Studio 3.0风味维度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Studio Canary构建。我之前的Telegram Messenger项目出现以下错误。

我应该怎么做?我已经看到了这个链接,但不知道该怎么做。我现在有3个构建变体,发布,调试和foss。 解决方案

如果你不需要这个机制,随机风格维度:

  android {
...
flavorDimensionsdefault
...
}

有关更多信息,请查看


Upgraded to Studio Canary build. My previous project of Telegram Messenger is giving following error.

What should I do? I have already seen that link but couldn't understand what to do. I have 3 build variants now, release,debug and foss.

解决方案

If you don't really need the mechanism, just specify a random flavor dimension:

android {
    ...
    flavorDimensions "default"
    ...
}

For more information, check the migration guide

这篇关于Android Studio 3.0风味维度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:14