Codename One UWP build - 图标大小错误

时间:2018-04-20 12:50:31

标签: build uwp codenameone

将应用程序发送到构建服务器以创建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。

1 个答案:

答案 0 :(得分:2)

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