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

解决办法呢,在你app下的gradle.build中的defaultConfig{}中添加

flavorDimensions "versionCode"  ,然后Sync Now即可

 defaultConfig {applicationId "laname。textminSdkVersion 16targetSdkVersion 28versionCode 1versionName 1.1.2flavorDimensions "versionCode"}

All flavors must now belong to a named flavor dimension. Learn more at https://相关推荐

  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. 解决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. ...

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

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

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

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

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

  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. android studio3.0——Error:All flavors must now belong to a named flavor dimension. Learn more at ...

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

最新文章

  1. How to make app start automatically When the application starts
  2. 不常用≠没用 Win7容易忽略的四个功能
  3. Convolutional Neural Networks for Sentence Classification-学习笔记
  4. jzoj1266,P1879-[USACO06NOV]玉米田Corn Fields【状态压缩,dp】
  5. 优化mysql数据库_MySQL数据库十大优化技巧
  6. 求解最长回文子串----Manacher 算法
  7. Struts 2 入门
  8. 8/7-8/8-8/9 今日TF训练
  9. Vue中使用echarts图表插件
  10. MongoDB 之 $关键字 及 $修改器 $set $inc $push $pull $pop MongoDB - 4
  11. Log4j框架配置文件log4j.properties配置使用详解
  12. elasticsearch 请求全部数据
  13. 笔记 3 文件的特殊属性,权限
  14. CentOS7版本下载地址发布 附正确下载CentOS各个版本镜像
  15. 《Netty权威指南》笔记 —— 第十二、十三、十四章
  16. ctf-web-never_give_up
  17. FASTA序列格式说明
  18. c语言常用算法pdf,妙趣横生的算法(C语言实现 第2版) 带目录完整pdf[94MB]
  19. centos9 intel集显直通方法
  20. 腾讯的这个框架火了!

热门文章

  1. C语言实现获取文件后缀、修改后缀
  2. [网络安全自学篇] 一 web学习及异或解密
  3. visio studio code安装之后的两个错误的解决办法
  4. 基于STM32 HAL库的遥控小车
  5. $().each() 和 $.each()
  6. iframe vue 宽度_vue 如何自适应调整嵌入的 iframe 的大小,让用户完全感觉不出有 iframe 这个东西?...
  7. JDBC--基础JDBC
  8. WAV 和AAC格式
  9. 国内外WLAN室内定位发展重点文献
  10. PTA L1-093 猜帽子游戏 (15 分)