【问题标题】:Codename One UWP build - icon size error代号 One UWP 构建 - 图标大小错误
【发布时间】:2018-10-01 04:41:13
【问题描述】:

将应用程序发送到构建服务器以创建 UWP 构建时出现错误:

[exec] (_ValidateAppxPackage target) -> 
[exec]   Package.appxmanifest(19,26): error APPX3207: App manifest references the wide 310x150 logo image 'Assets\Wide310x150Logo.scale-200.png' which is larger than the maximum image file size. It must be no larger than 204,800 bytes.

应用程序的徽标是所需的大小 (512x512),所以我有点困惑。任何帮助,将不胜感激。 TIA。

【问题讨论】:

  • 这是一种宽标识,明确表示必须为 310x150,最大 200kb
  • Codename One 要求应用程序徽标为 512x512,否则构建无法发送到服务器。

标签: build uwp codenameone


【解决方案1】:

我找到了原因。当 Codename One 将应用程序图标的大小从提供的 512x512 调整为 310x150 时,它似乎根本没有减小文件大小。由于我的原始图标(刚刚)超过 200Kb,因此较小的版本也超过了限制。我已经优化了我的图标的 PNG 文件,现在构建成功了。

【讨论】:

    猜你喜欢
    • 2021-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多