Flutter应用无法上传到Microsoft Store。

huangapple go评论64阅读模式
英文:

Flutter app cannot be uploaded to Microsoft Store

问题

我之前问过这个问题,但我仍然迷失。我试图将我的Flutter应用程序上传到Microsoft Store,但在认证报告中一直收到'10.1.1.11 不准确的图标表示'的详细信息。

这是我的pubspec.yaml文件:

environment:
  sdk: '>=2.19.2 <3.0.0'

dependencies:
  flutter:
    sdk: flutter
  beautiful_soup_dart: ^0.3.0
  http: ^0.13.5
  html: ^0.15.0
  chaleno: ^0.0.6
  provider: ^6.0.0
  accordion: ^2.5.1
  simple_circular_progress_bar: ^1.0.2
  window_size:
    git:
      url: https://github.com/google/flutter-desktop-embedding
      path: plugins/window_size
  flutter_launcher_icons: ^0.13.1
  msix: ^3.13.2

flutter_launcher_icons:
  android: true
  image_path: "assets/logo/logoIcon.png"
  windows: true 

我不知道该怎么办了。支持人员给我发送了图标(Flutter标志),但他们没有告诉我它出现在哪里或在代码中触发了什么。我在项目中寻找这个图标,但我找不到类似的东西,里面的所有图片都是原始的。

在我的第一篇帖子中,有人告诉我更改'flutter_launcher_icons'的配置,但这也没有改变任何东西。

英文:

I've asked this before but I'm still lost. I'm trying to upload my Flutter app to Microsoft Store but I keep getting '10.1.1.11 Inaccurate Representation - Icon' detail on certification report.

This is my pubspec.yaml file:

environment:
  sdk: &#39;&gt;=2.19.2 &lt;3.0.0&#39;

dependencies:
  flutter:
    sdk: flutter
  beautiful_soup_dart: ^0.3.0
  http: ^0.13.5
  html: ^0.15.0
  chaleno: ^0.0.6
  provider: ^6.0.0
  accordion: ^2.5.1
  simple_circular_progress_bar: ^1.0.2
  window_size:
    git:
      url: https://github.com/google/flutter-desktop-embedding
      path: plugins/window_size
  flutter_launcher_icons: ^0.13.1
  msix: ^3.13.2

flutter_launcher_icons:
  android: true
  image_path: &quot;assets/logo/logoIcon.png&quot;
  windows: true 

I don't know what to do anymore. Support sends me the icon (flutter logo) but they don't tell me where does it appear or where in the code it is triggered. I looked for the icon inside the project but I couldn't find anything like that, all the images in it are original.

On my first post, someone told me to change the 'flutter_launcher_icons' configuration but it did not change anything either.

答案1

得分: 1

我终于做到了

在我的pubspec.yaml中进行了许多更改,我认为主要问题是我的msix配置中缺少一些属性。以防在更改配置后它对您不起作用,这是我.yaml文件的当前内容:

dependencies:
  flutter:
    sdk: flutter
  beautiful_soup_dart: ^0.3.0
  http: ^0.13.5
  html: ^0.15.0
  chaleno: ^0.0.6
  provider: ^6.0.0
  accordion: ^2.5.1
  simple_circular_progress_bar: ^1.0.2
  window_size:
    git:
      url: https://github.com/google/flutter-desktop-embedding
      path: plugins/window_size

msix_config:
  display_name: (display_name)
  publisher_display_name: (publisher_display_name)
  identity_name: (identity_name)
  msix_version: 1.0.11.0
  publisher: (publisher)
  store: true
  logo_path: (logo_path) # 警告:此路径来自您的磁盘,而不是项目,阅读MSIX文档以获取更多信息
  trim_logo: false

dev_dependencies:
  flutter_launcher_icons: ^0.13.1
  msix: ^3.13.2

flutter_launcher_icons:
  android: "ic_launcher"
  ios: true
  image_path: "assets/logo/logoIcon.png"
  min_sdk_android: 21

  windows: 
    generate: true
    image_path: "assets/logo/app_icon.ico"
    icon_size: 48

希望对您也有效!

英文:

I've finally done it

After a lot of changes in my pubspec.yaml I think the main problem was that some attributes were missing in my msix configuration. Just in case it does not work for you after changing the config, this is how my .yaml looks like right now:

dependencies:
  flutter:
    sdk: flutter
  beautiful_soup_dart: ^0.3.0
  http: ^0.13.5
  html: ^0.15.0
  chaleno: ^0.0.6
  provider: ^6.0.0
  accordion: ^2.5.1
  simple_circular_progress_bar: ^1.0.2
  window_size:
    git:
      url: https://github.com/google/flutter-desktop-embedding
      path: plugins/window_size

msix_config:
  display_name: (display_name)
  publisher_display_name: (publisher_display_name)
  identity_name: (identity_name)
  msix_version: 1.0.11.0
  publisher: (publisher)
  store: true
  logo_path: (logo_path) # WARNING THIS PATH IS FROM YOUR DISK, NOT FROM PROJECT, READ MSIX DOC FOR MORE INFO
  trim_logo: false

dev_dependencies:
  flutter_launcher_icons: ^0.13.1
  msix: ^3.13.2


flutter_launcher_icons:
  android: &quot;ic_launcher&quot;
  ios: true
  image_path: &quot;assets/logo/logoIcon.png&quot;
  min_sdk_android: 21

  windows: 
    generate: true
    image_path: &quot;assets/logo/app_icon.ico&quot;
    icon_size: 48

I hope it works for you too!

答案2

得分: 0

    flutter_launcher_icons:
      image_path_android: "assets/images/icon-710x599-android.png"
      image_path_ios: "assets/images/icon-1024x1024.png"
      android: true
      ios: true
      adaptive_icon_background: "assets/images/christmas-background.png"
      adaptive_icon_foreground: "assets/images/icon-foreground-432x432.png"
      min_sdk_android: 21
      remove_alpha_ios: true
      background_color_ios: "#ffffff"
      web:
        generate: true
        image_path: "assets/images/icon-1024x1024.png"
        background_color: "#hexcode"
        theme_color: "#hexcode"
      windows:
        generate: true
        image_path: "assets/images/icon-1024x1024.png"
        icon_size: 48
      macos:
        generate: true
        image_path: "assets/images/icon-1024x1024.png"
英文:

As per example code for flutter_launcher_icons you need to specify and provide values to certain params (generate, image_path, icon_size) while generating for Windows, Mac & Web

flutter_launcher_icons:
  #  image_path: &quot;assets/images/icon-128x128.png&quot;
  image_path_android: &quot;assets/images/icon-710x599-android.png&quot;
  image_path_ios: &quot;assets/images/icon-1024x1024.png&quot;
  android: true # can specify file name here e.g. &quot;ic_launcher&quot;
  ios: true # can specify file name here e.g. &quot;My-Launcher-Icon&quot;
  adaptive_icon_background: &quot;assets/images/christmas-background.png&quot; # only available for Android 8.0 devices and above
  adaptive_icon_foreground: &quot;assets/images/icon-foreground-432x432.png&quot; # only available for Android 8.0 devices and above
  min_sdk_android: 21 # android min sdk min:16, default 21
  remove_alpha_ios: true
  background_color_ios: &quot;#ffffff&quot;
  web:
    generate: true
    image_path: &quot;assets/images/icon-1024x1024.png&quot;
    background_color: &quot;#hexcode&quot;
    theme_color: &quot;#hexcode&quot;
  windows: //**TODO: Make these changes** 
    generate: true
    image_path: &quot;assets/images/icon-1024x1024.png&quot;
    icon_size: 48 # min:48, max:256, default: 48
  macos:
    generate: true
    image_path: &quot;assets/images/icon-1024x1024.png&quot;

Once you make these changes, run the command for generating launcher icons

flutter pub get
flutter pub run flutter_launcher_icons

答案3

得分: 0

将这个依赖项写在 dev_dependencies 中,而不是 dependencies 中。

就像这张图片中一样。

还要检查这个指南。 flutter_launcher_icons

Flutter应用无法上传到Microsoft Store。

英文:

Write this dependency in dev_dependencies not in dependencies

Like in this image.
Also check the guide. flutter_launcher_icons

Flutter应用无法上传到Microsoft Store。

huangapple
  • 本文由 发表于 2023年6月26日 17:38:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76555437.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定