Android Studio 3.0 Flavor Dimension 问题 [英] Android Studio 3.0 Flavor Dimension Issue
问题描述
升级到 Studio Canary 版本.我之前的 Telegram Messenger 项目出现以下错误.
Upgraded to Studio Canary build. My previous project of Telegram Messenger is giving following error.
错误:所有风味现在都必须属于命名风味维度.风味armv7"未分配给风味维度.在 https://d.android.com/r/了解更多信息工具/flavorDimensions-missing-error-message.html
Error:All flavors must now belong to a named flavor dimension. The flavor 'armv7' is not assigned to a flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html
我该怎么办?我已经看过那个链接,但不知道该怎么做.我现在有 3 个构建变体,release、debug 和 foss.
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.
推荐答案
如果你真的不需要这个机制,只需在你的 build.gradle
中指定一个随机的风味维度:
If you don't really need the mechanism, just specify a random flavor dimension in your build.gradle
:
android {
...
flavorDimensions "default"
...
}
有关更多信息,请查看迁移指南
For more information, check the migration guide
这篇关于Android Studio 3.0 Flavor Dimension 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!