AS升级到3.4.2之后在多渠道环境下编译出错,错误提示为:"ERROR: All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html,Affected Modules: ModuleName".

错误:要求所有的flavors要在同一个维度。

解决办法:在build.gradle文件defaultConfig下添加:

  compileSdkVersion 22buildToolsVersion '28.0.3'defaultConfig {applicationId "com.kyunglip"minSdkVersion 17targetSdkVersion 19testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"multiDexEnabled true//buildConfigField 默认值,特殊渠道属性可以重写buildConfigField "Boolean ", "SPEECH_ENABLED", "true"ndk {abiFilters 'armeabi-v7a'}//添加此行flavorDimensions "default"}
其中,“default"值可以是任意,但一般都是default。添加完之后重新syn。

解决AS升级3.4 ERROR: All flavors must now belong to a named flavor dimension.Learn more at https://d.and相关推荐

  1. 解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com

    这个错误是说:必须要保证所有的flavor 都属于同一个维度. 3.0之前配置多版本打包是不会有问题的,可以正常运行.打包.但是AndroidStudio升级到3.0之后,配置多版本打包运行的时候会提 ...

  2. ERROR: All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/

    使用环境: 有缘遇上了,就用. 使用方法: 如果修改了lib中的某些属性,导致此报错产生, 那么就需要将lib下的build.gradle文件中的 versionName 1 versionCode ...

  3. AndroidStudio Gradle 解决Error:All flavors must now belong to a named flavor dimension. Learn more at

    解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com ...

  4. Error:All flavors must now belong to a named flavor dimension. Learn more at

    这个问题原因是AndroidStudio升级到3.0.1之后,gradle4.1版本.会提示Error:All flavors must now belong to a named flavor di ...

  5. All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tool

    Android Studio升级到3.0之后,运行的时候会报错 Error:A problem occurred configuring project ':app'. > All flavor ...

  6. All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools

    我把AndroidStudio从2.0+升级到3.0+时,今天在AndroidStudio3.0+上进行多渠道打包时遇到了如下的错误提示: All flavors must now belong to ...

  7. android studio3.0——Error:All flavors must now belong to a named flavor dimension. Learn more at ...

    android studio3.0正式版在千呼万唤中于2017年10月下旬正式发布,各种变化就不说了,目前还没全面了解,只是知道起码不用插件就能用kotlin开发了<迷之微笑>. 和大多数 ...

  8. 解决Error:All flavors must now belong to a named flavor dimension. Learn more at...

    转载请标明出处:https://www.cnblogs.com/tangZH/p/10764638.html 更多精彩文章:http://77blogs.com/?p=297 低版本的gradle里面 ...

  9. All flavors must now belong to a named flavor dimension. Learn more at https://

    在gradle插件3.0.0包括一个新的依赖机制时自动匹配,需要你的flavorDimensions保持一致,为什么会出现这个问题呢,原因也就在于你分包了productFlavors{} 解决办法呢, ...

最新文章

  1. 杭电3371Connect the Cities
  2. 还原淘宝首页最顶部的导航栏(含下拉菜单,图标等)
  3. Laravel核心解读 -- Request
  4. 全网首发:linux任务栏分组的研究
  5. Eclipse语言包的安装与卸载
  6. 新手小白如何从0到1学会电商运营,这3个方法带你月入五位数
  7. Snort Rules——使用pcre进行规则匹配
  8. Ubuntu-阿里云搭建Gitlub
  9. 除尘器选型需要考虑的因素
  10. 洞察科技,感知未来:人工智能将如何改变学术搜索?
  11. Android开发规范:APP版本发布(全量发布、灰度发布)
  12. HTML在手机端禁止放大缩小
  13. VLDB论文解读:阿里云超大规模实时分析型数据库AnalyticDB
  14. 人眼感知到的颜色与真实物理世界的颜色有什么区别?
  15. 卷积网络中的通道(Channel)和特征图
  16. 用python做股票因子分析_Python与量化多因子——机器学习方法在因子合成上的应用...
  17. 为VMwareESXi添加驱动
  18. 数据结构之折半查找法(Binary Search)
  19. 理解设计模式中的原型模式
  20. 爱看广场舞的老爷爷的脚本日记

热门文章

  1. docker重启 容器自动重启
  2. STM32H743必要外围电路分析
  3. 51kid页面卡死解决办法
  4. 阿龙学堂-VUE面试总结
  5. sugar与阿龙的互怼(第一季)
  6. 专访强生医疗裴兴:后流量思维时代,医美行业迎来数字化大变局
  7. python按照日期筛选数据_pandas 按日期范围筛选数据的实现
  8. 注册表计算机性能设置怎么应用,教你几招怎么玩注册表
  9. 超硬核,Nacos实现原理详细讲解
  10. ue4 小知识点 als advanced locomotion system v4 foot ik 坑