赞
踩
问题:
All flavors must now belong to a named flavor dimension.
所有口味现在必须属于一个命名的风味维度。
解决参考 如下:
- flavorDimensions('flavorDimensions1', 'flavorDimensions2')
- productFlavors {
- version1 {
- dimension 'flavorDimensions1'
- applicationId "com.company.version1"
- resValue "string", "app_name", "version1"
- manifestPlaceholders = [CHANNEL_VALUE: "version1"
- ,app_icon : "@mipmap/ic_launcher"]
- }
- version2 {
- dimension 'flavorDimensions2'
- applicationId "com.company.version2"
- resValue "string", "app_name", "version2"
- manifestPlaceholders = [CHANNEL_VALUE: "version2",
- app_icon : "@mipmap/ic_launcher
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。