2017-02-28 51 views
0

我更新了air sdk來編譯我的應用程序。我用flex3.9進行了flex4.6編譯,並且爲apk和ipa進行了包裝。現在我需要空氣24進行編輯。我得到:錯誤:打包ipa文件時無法找到mx.logging.targets :: LineFormattedTarget。誰能幫我?我檢查它開始與空氣22,我的意思是我編譯它與flex4.6_air_21和它的工作,但與22它開始給這個錯誤當打包ipa文件時出現錯誤:mx.logging.targets :: LineFormattedTarget找不到並且編譯abc失敗

+0

我在這裏沒有使用IDE。它在與螞蟻的控制檯中完成。 – piokub

回答

0

問題撒謊。我們在之前的sdk中有不同的flextasks.jar。當我們將它們複製到新的sdk時,它解決了這個問題。重疊FlexSDK和Air SDK與這個問題無關,首先你使用flex sdk進行編譯,然後你使用air sdk進行蒸發和包裝(對於iOS和Android)。只要你指向適當的工具,你就可以分開使用這兩種SDK。

1

我認爲你需要覆蓋AIR sdk到Flex sdk。 說明現在的位置:用Ant任務 https://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html

Exit Flash Builder.

(Optional) Back up the Flex SDK by copying the entire directory.

In Flash Builder, for example, copy the directory at:

Windows: C:/Program Files/Adobe/Flash Builder 4.7/sdks/4.6.0

Mac OS: /Applications/Adobe Flash Builder 4.7/sdks/4.6.0

Download the appropriate AIR SDK file for your operating system from www.adobe.com/products/air/sdk/, and save it to the root directory of the Flex SDK.

Windows: AIRSDK_Compiler.zip

Mac OS: AIRSDK_Compiler.dmg

Extract the contents of the AIR SDK archive and overwrite the existing SDK files.

Windows: Right-click the ZIP file and select Extract All, or use a decompression tool of your choice.

Mac OS: In Terminal, run these commands:

hdiutil attach AIRSDK_Compiler.dmg cp -rf /Volumes/AIR\ SDK/* /path-to-empty-FLEXSDK-directory If you have trouble overwriting files due to file permissions, try these commands:

sudo hdiutil attach AIRSDK_Compiler.dmg sudo cp -rf /Volumes/AIR\ SDK/* /path-to-empty-FLEXSDK-directory (Optional) To access the new AIR 3.4 APIs, update your application descriptor file to the 3.4 namespace.

To update the namespace, change the xmlns attribute in your application descriptor to:

(Optional) To ensure that the output SWF file targets SWF version 17, pass an additional compiler argument: -swf-version=17.

+0

首先我不使用FB。我用螞蟻編譯它。這對我的問題沒有幫助。 – piokub

+1

mx.logging.targets :: LineFormattedTarget位於Flex包中...是否將Flex SDK上的AIR SDK覆蓋了? – Clintm

相關問題