解决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里面不会出现这个错误,高版本出现,不多说,看如何解决
在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...相关推荐
- 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 ...
- 解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
这个错误是说:必须要保证所有的flavor 都属于同一个维度. 3.0之前配置多版本打包是不会有问题的,可以正常运行.打包.但是AndroidStudio升级到3.0之后,配置多版本打包运行的时候会提 ...
- 解决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. ...
- 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 ...
- 解决Error:All flavors must now belong to a named flavor dimension
前言 最近写的项目越来越大,出现了64K问题,所以用了Multidex来突破64K方法数限制,然后为了优化编译速度在build.gradle文件中加入了如下代码 productFlavors {// ...
- android studio3.0——Error:All flavors must now belong to a named flavor dimension. Learn more at ...
android studio3.0正式版在千呼万唤中于2017年10月下旬正式发布,各种变化就不说了,目前还没全面了解,只是知道起码不用插件就能用kotlin开发了<迷之微笑>. 和大多数 ...
- 解决Error:All flavors must now belong to a named flavor dimension.
defaultConfig {versionCode rootProject.ext.android.versionCodeversionName rootProject.ext.android.ve ...
- 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 ...
- 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 ...
最新文章
- singleton模式四种线程安全的实现
- [文档].艾米电子 - 在综合中使用函数,Verilog
- 我的开源项目——Jerry
- python写文件格式转换程序_python实现txt文件格式转换为arff格式
- 浙江移动智能语音服务器,接口说明
- 1个通用工具平台+多个热点场景工具套件,助力开发者快速构建应用
- 聚类(2)-- Fuzzy k-means clustering
- Google浏览器划词翻译
- pxe服务器 安装系统,通过PXE网络安装windows系统
- 互联网盈利模式研习笔记 1:流量变现
- 微信服务号菜单栏跳转网页配置方法(非接口写法)
- 看了我的mybatis-plus用法,同事也开始悄悄模仿了
- 计算机里的文案怎么设置背景,PPT怎么设置单个幻灯片为背景样式4?网友:原来这么简单!...
- html下拉 小狗,html会动的小狗狗源码
- 视频监控发展的技术难点在哪里?
- 英国脱欧不过是小事一桩
- MySQL百万数据量如何快速查询。求教
- 通过matlab对比不同调制方式下的球形译码误码率仿真,包括BPSK,QPSK,8PSK,4QAM以及16QAM
- linux网口环回测试程序,关于linux:Linux-环回网络接口
- 很好的db2 学习资料(windows)