Flutter应用无法上传到Microsoft Store。

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

Flutter app cannot be uploaded to Microsoft Store

问题

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

这是我的pubspec.yaml文件:

  1. environment:
  2. sdk: '>=2.19.2 <3.0.0'
  3. dependencies:
  4. flutter:
  5. sdk: flutter
  6. beautiful_soup_dart: ^0.3.0
  7. http: ^0.13.5
  8. html: ^0.15.0
  9. chaleno: ^0.0.6
  10. provider: ^6.0.0
  11. accordion: ^2.5.1
  12. simple_circular_progress_bar: ^1.0.2
  13. window_size:
  14. git:
  15. url: https://github.com/google/flutter-desktop-embedding
  16. path: plugins/window_size
  17. flutter_launcher_icons: ^0.13.1
  18. msix: ^3.13.2
  19. flutter_launcher_icons:
  20. android: true
  21. image_path: "assets/logo/logoIcon.png"
  22. 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:

  1. environment:
  2. sdk: &#39;&gt;=2.19.2 &lt;3.0.0&#39;
  3. dependencies:
  4. flutter:
  5. sdk: flutter
  6. beautiful_soup_dart: ^0.3.0
  7. http: ^0.13.5
  8. html: ^0.15.0
  9. chaleno: ^0.0.6
  10. provider: ^6.0.0
  11. accordion: ^2.5.1
  12. simple_circular_progress_bar: ^1.0.2
  13. window_size:
  14. git:
  15. url: https://github.com/google/flutter-desktop-embedding
  16. path: plugins/window_size
  17. flutter_launcher_icons: ^0.13.1
  18. msix: ^3.13.2
  19. flutter_launcher_icons:
  20. android: true
  21. image_path: &quot;assets/logo/logoIcon.png&quot;
  22. 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文件的当前内容:

  1. dependencies:
  2. flutter:
  3. sdk: flutter
  4. beautiful_soup_dart: ^0.3.0
  5. http: ^0.13.5
  6. html: ^0.15.0
  7. chaleno: ^0.0.6
  8. provider: ^6.0.0
  9. accordion: ^2.5.1
  10. simple_circular_progress_bar: ^1.0.2
  11. window_size:
  12. git:
  13. url: https://github.com/google/flutter-desktop-embedding
  14. path: plugins/window_size
  15. msix_config:
  16. display_name: (display_name)
  17. publisher_display_name: (publisher_display_name)
  18. identity_name: (identity_name)
  19. msix_version: 1.0.11.0
  20. publisher: (publisher)
  21. store: true
  22. logo_path: (logo_path) # 警告:此路径来自您的磁盘,而不是项目,阅读MSIX文档以获取更多信息
  23. trim_logo: false
  24. dev_dependencies:
  25. flutter_launcher_icons: ^0.13.1
  26. msix: ^3.13.2
  27. flutter_launcher_icons:
  28. android: "ic_launcher"
  29. ios: true
  30. image_path: "assets/logo/logoIcon.png"
  31. min_sdk_android: 21
  32. windows:
  33. generate: true
  34. image_path: "assets/logo/app_icon.ico"
  35. 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:

  1. dependencies:
  2. flutter:
  3. sdk: flutter
  4. beautiful_soup_dart: ^0.3.0
  5. http: ^0.13.5
  6. html: ^0.15.0
  7. chaleno: ^0.0.6
  8. provider: ^6.0.0
  9. accordion: ^2.5.1
  10. simple_circular_progress_bar: ^1.0.2
  11. window_size:
  12. git:
  13. url: https://github.com/google/flutter-desktop-embedding
  14. path: plugins/window_size
  15. msix_config:
  16. display_name: (display_name)
  17. publisher_display_name: (publisher_display_name)
  18. identity_name: (identity_name)
  19. msix_version: 1.0.11.0
  20. publisher: (publisher)
  21. store: true
  22. logo_path: (logo_path) # WARNING THIS PATH IS FROM YOUR DISK, NOT FROM PROJECT, READ MSIX DOC FOR MORE INFO
  23. trim_logo: false
  24. dev_dependencies:
  25. flutter_launcher_icons: ^0.13.1
  26. msix: ^3.13.2
  27. flutter_launcher_icons:
  28. android: &quot;ic_launcher&quot;
  29. ios: true
  30. image_path: &quot;assets/logo/logoIcon.png&quot;
  31. min_sdk_android: 21
  32. windows:
  33. generate: true
  34. image_path: &quot;assets/logo/app_icon.ico&quot;
  35. icon_size: 48

I hope it works for you too!

答案2

得分: 0

  1. flutter_launcher_icons:
  2. image_path_android: "assets/images/icon-710x599-android.png"
  3. image_path_ios: "assets/images/icon-1024x1024.png"
  4. android: true
  5. ios: true
  6. adaptive_icon_background: "assets/images/christmas-background.png"
  7. adaptive_icon_foreground: "assets/images/icon-foreground-432x432.png"
  8. min_sdk_android: 21
  9. remove_alpha_ios: true
  10. background_color_ios: "#ffffff"
  11. web:
  12. generate: true
  13. image_path: "assets/images/icon-1024x1024.png"
  14. background_color: "#hexcode"
  15. theme_color: "#hexcode"
  16. windows:
  17. generate: true
  18. image_path: "assets/images/icon-1024x1024.png"
  19. icon_size: 48
  20. macos:
  21. generate: true
  22. 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

  1. flutter_launcher_icons:
  2. # image_path: &quot;assets/images/icon-128x128.png&quot;
  3. image_path_android: &quot;assets/images/icon-710x599-android.png&quot;
  4. image_path_ios: &quot;assets/images/icon-1024x1024.png&quot;
  5. android: true # can specify file name here e.g. &quot;ic_launcher&quot;
  6. ios: true # can specify file name here e.g. &quot;My-Launcher-Icon&quot;
  7. adaptive_icon_background: &quot;assets/images/christmas-background.png&quot; # only available for Android 8.0 devices and above
  8. adaptive_icon_foreground: &quot;assets/images/icon-foreground-432x432.png&quot; # only available for Android 8.0 devices and above
  9. min_sdk_android: 21 # android min sdk min:16, default 21
  10. remove_alpha_ios: true
  11. background_color_ios: &quot;#ffffff&quot;
  12. web:
  13. generate: true
  14. image_path: &quot;assets/images/icon-1024x1024.png&quot;
  15. background_color: &quot;#hexcode&quot;
  16. theme_color: &quot;#hexcode&quot;
  17. windows: //**TODO: Make these changes**
  18. generate: true
  19. image_path: &quot;assets/images/icon-1024x1024.png&quot;
  20. icon_size: 48 # min:48, max:256, default: 48
  21. macos:
  22. generate: true
  23. image_path: &quot;assets/images/icon-1024x1024.png&quot;

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

  1. flutter pub get
  2. 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:

确定