如何解决All flavors must now belong to a named flavor dimension.?
如何解决All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html?
今天在用Android搭建友盟集成环境的时候突然给我报这错,在网上找了大量的解决方案,终于找到了一个。希望对大家有帮助。奥利给!
报错提示:
解决方案:
在主app的build.gradle里面的
加入 flavorDimensions “versionCode”,如下图所示:
参考链接:
https://www.cnblogs.com/newcaoguo/p/9019854.html
如何解决All flavors must now belong to a named flavor dimension.?相关推荐
- Android Studio 3.0 多渠道打包 解决All flavors must now belong to a named flavor dimension
首先官方文档地址:这个需要梯子 https://developer.android.com/studio/build/build-variants?utm_source=android-studio# ...
- 解决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. ...
- 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 ...
- All flavors must now belong to a named flavor dimension
这个问题刚使用androidstudio的时候就遇到了,当时因为没法科学上网就没有查其根本原因.瞅了几篇博客,增加了flavorDimensions "versionCode"这句 ...
- All flavors must now belong to a named flavor dimension.
项目编译报错: FAILURE: Build failed with an exception.* What went wrong: A problem occurred configuring pr ...
- 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 ...
- 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 ...
- 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 ...
最新文章
- charapter 1
- Java 8 - 05 方法引用
- 为什么在Docker里使用gdb调试器会报错
- 《剑指offer》从尾到头打印链表
- .NET必知的EventCounters性能指标监视器
- c++ fork 进程时 共享内存_c/c++ Linux 进程间通信------共享内存
- Android Glide数据更新及内存缓存、硬盘缓存清理
- 软考网络规划设计师考试要求
- JSTL Tutorial with Examples – JSTL Core Tags
- cad快捷栏怎么调出来_cad怎么显示工具栏快捷键 cad快捷键常见问题解决办法
- 555定时器原理及应用(报告)
- linux定时任务(crontab)
- (三万字长文)类型即正义:TypeScript 从入门到实践系列,正式完结!
- 测试治具、夹具、托盘
- [Spring Boot]Druid datasource整合及配置
- ios html文本高度,iOS 14 准确计算WKWebview Html内容高度 简易方法
- R语言: 单个正态总体的假设检验(单样本t检验)
- 如何在YesDev,多团队协作程序员客栈的整包项目?
- 知识图谱在金融领域的应用
- 编译Android项目的时候提示非法字符:“\ufeff”的解决方法