0

Adob​​e文檔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。

+0

對於我來說,那些你在引起編譯器錯誤的地方註釋掉的人真的很奇怪。您是使用Flex還是新的ActionScript編譯器?檢查你的圖片;我有一種情況,從Illustrator中導出圖像實際上使它們失去了1個像素;所以不是50x50而是49x49。我在Photoshop中提供了這些圖像,並在內存服務於我時調整了它們的大小。 – JeffryHouser

+0

你誤會了我:他們給我的錯誤信息,這就是爲什麼我必須評論他們。另外,我使用Gimp,尺寸似乎沒問題。這是關於一些奇怪的原因,Flash Builder拒絕某些' ...'標籤。 –

+0

您是使用Flex還是新的ActionScript編譯器?我的應用程序(Flex 4.6 + AIR 3.4)可以很好地編譯那些圖像大小。 – JeffryHouser

回答

1

解決方案是更新SDK中使用的AIR版本。 Adobe Flex 4.6 [或Apache Flex 4.8]中包含的AIR版本不支持這些新的圖標大小。

說明updating the AIR SDK within Flex可以在這裏找到。一般這樣做:

  1. 下載當前SDK並解壓
  2. 複製文件和文件夾從你的解壓目錄到Flex目錄
  3. 更新的Flex SDK名稱的根在「flex- sdk-description.xml「文件。
+0

謝謝,更新到AIR 3.5幫助:http://www.adobe.com/devnet/air/air-sdk-download.html –

+1

對於其他人在命令行上使用adt來解決此問題,請確保在更新時您的AIR SDK更新到3.5+,您還將XML描述符更新爲3.5:,否則它會像仍然使用舊版本的AIR。 – roguenet

相關問題