Adobe文档Developing AIR applications for mobile devices列出了许多要在应用程序描述符文件中声明的图标。适用于Android和iOS的Flex移动应用程序的应用程序图标
但是当我尝试导出发行版具有以下对myApp-app.xml中:
<icon>
<image16x16>assets/icons/16x16.png</image16x16>
<image29x29>assets/icons/29x29.png</image29x29>
<image32x32>assets/icons/32x32.png</image32x32>
<image36x36>assets/icons/36x36.png</image36x36>
<image48x48>assets/icons/48x48.png</image48x48>
<image57x57>assets/icons/57x57.png</image57x57>
<image72x72>assets/icons/72x72.png</image72x72>
<image114x114>assets/icons/114x114.png</image114x114>
<image128x128>assets/icons/128x128.png</image128x128>
<image512x512>assets/icons/512x512.png</image512x512>
<!--
<image50x50>assets/icons/50x50.png</image50x50>
<image58x58>assets/icons/58x58.png</image58x58>
<image100x100>assets/icons/100x100.png</image100x100>
<image144x144>assets/icons/144x144.png</image144x144>
<image1024x1024>assets/icons/1024x1024.png</image1024x1024>
-->
</icon>
我得到错误信息(无论是否部署用于Android或iOS),除非我评论,因为上面的5条线:
error 103: application.icon.image50x50 is an unexpected element/attribute
error 103: application.icon.image58x58 is an unexpected element/attribute
error 103: application.icon.image100x100 is an unexpected element/attribute
error 103: application.icon.image1024x1024 is an unexpected element/attribute
error 103: application.icon.image144x144 is an unexpected element/attribute
我的问题是在这里做什么?移动<android>....</android>
或<iphone>....</iphone>
下的5个图标也无济于事。
在Windows 7/64位下使用Flash Builder 4.7 beta。
对于我来说,那些你在引起编译器错误的地方注释掉的人真的很奇怪。您是使用Flex还是新的ActionScript编译器?检查你的图片;我有一种情况,从Illustrator中导出图像实际上使它们失去了1个像素;所以不是50x50而是49x49。我在Photoshop中提供了这些图像,并在内存服务于我时调整了它们的大小。 – JeffryHouser
你误会了我:他们给我的错误信息,这就是为什么我必须评论他们。另外,我使用Gimp,尺寸似乎没问题。这是关于一些奇怪的原因,Flash Builder拒绝某些' ... '标签。 –
您是使用Flex还是新的ActionScript编译器?我的应用程序(Flex 4.6 + AIR 3.4)可以很好地编译那些图像大小。 – JeffryHouser