转载请标明出处:https://www.cnblogs.com/tangZH/p/10764638.html

更多精彩文章:http://77blogs.com/?p=297

低版本的gradle里面不会出现这个错误,高版本出现,不多说,看如何解决

在defaultConfig{}中添加:

flavorDimensions "default"

保证所有的flavor 都属于同一个维度

 defaultConfig {applicationId "com.status.channel"minSdkVersion 15targetSdkVersion 28versionCode 1versionName "1.0"testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"flavorDimensions "default"}

解决Error:All flavors must now belong to a named flavor dimension. Learn more at...相关推荐

  1. 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 ...

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

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

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

    AS升级到3.4.2之后在多渠道环境下编译出错,错误提示为:"ERROR: All flavors must now belong to a named flavor dimension. ...

  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. 解决Error:All flavors must now belong to a named flavor dimension

    前言 最近写的项目越来越大,出现了64K问题,所以用了Multidex来突破64K方法数限制,然后为了优化编译速度在build.gradle文件中加入了如下代码 productFlavors {// ...

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

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

  7. 解决Error:All flavors must now belong to a named flavor dimension.

    defaultConfig {versionCode rootProject.ext.android.versionCodeversionName rootProject.ext.android.ve ...

  8. 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 ...

  9. ERROR: All flavors must now belong to a named flavor dimension.

    AndroidStudio升级到3.4.1之后,配置多版本打包运行的时候会提示这个错误(ERROR: All flavors must now belong to a named flavor dim ...

最新文章

  1. singleton模式四种线程安全的实现
  2. [文档].艾米电子 - 在综合中使用函数,Verilog
  3. 我的开源项目——Jerry
  4. python写文件格式转换程序_python实现txt文件格式转换为arff格式
  5. 浙江移动智能语音服务器,接口说明
  6. 1个通用工具平台+多个热点场景工具套件,助力开发者快速构建应用
  7. 聚类(2)-- Fuzzy k-means clustering
  8. Google浏览器划词翻译
  9. pxe服务器 安装系统,通过PXE网络安装windows系统
  10. 互联网盈利模式研习笔记 1:流量变现
  11. 微信服务号菜单栏跳转网页配置方法(非接口写法)
  12. 看了我的mybatis-plus用法,同事也开始悄悄模仿了
  13. 计算机里的文案怎么设置背景,PPT怎么设置单个幻灯片为背景样式4?网友:原来这么简单!...
  14. html下拉 小狗,html会动的小狗狗源码
  15. 视频监控发展的技术难点在哪里?
  16. 英国脱欧不过是小事一桩
  17. MySQL百万数据量如何快速查询。求教
  18. 通过matlab对比不同调制方式下的球形译码误码率仿真,包括BPSK,QPSK,8PSK,4QAM以及16QAM
  19. linux网口环回测试程序,关于linux:Linux-环回网络接口
  20. 很好的db2 学习资料(windows)

热门文章

  1. 富贵竹的水养殖方法和注意事项,6个步骤帮你养出翠绿富贵竹
  2. MacBook替换登录界面壁纸
  3. 自动生成fbi代码网站
  4. Leetcode5238 找出给定方程的正整数解
  5. Saruman's Army (POJ3069)
  6. 项目:淘宝用户数据分析
  7. 学习笔记:物料接收到质检库存的几种不同方式
  8. 心理学导论--- 1 心理学在搞什么
  9. linux内核软盘,软盘也成历史文物 Linux内核将取消软盘驱动器支持
  10. 《牛客刷verilog》Part I Verilog快速入门