当前位置:   article > 正文

flutter 多渠道打包 不同环境不同包名 product flavors flavorDimensions_flutter build apk flavor dimension

flutter build apk flavor dimension

问题:

All flavors must now belong to a named flavor dimension.

所有口味现在必须属于一个命名的风味维度。

解决参考 如下:

  1. flavorDimensions('flavorDimensions1', 'flavorDimensions2')
  2. productFlavors {
  3. version1 {
  4. dimension 'flavorDimensions1'
  5. applicationId "com.company.version1"
  6. resValue "string", "app_name", "version1"
  7. manifestPlaceholders = [CHANNEL_VALUE: "version1"
  8. ,app_icon : "@mipmap/ic_launcher"]
  9. }
  10. version2 {
  11. dimension 'flavorDimensions2'
  12. applicationId "com.company.version2"
  13. resValue "string", "app_name", "version2"
  14. manifestPlaceholders = [CHANNEL_VALUE: "version2",
  15. app_icon : "@mipmap/ic_launcher
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/515326
推荐阅读
相关标签
  

闽ICP备14008679号