Adobe ASC 2.0 and ASDoc

2019-07-27 07:31发布

问题:

After upgrading to the AIR 3.6 SDK which uses the new ASC 2.0 compiler all the ASDoc tasks in my Ant build files fail. I'm getting the error:

BUILD FAILED
E:\Projects\Eclipse\project\build\build_swc.xml:51: The following error occurred while executing this line:
E:\Projects\Eclipse\projectbuild\build_swc.xml:209: Problem: failed to create task or type asdoc
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Did Adobe remove the ASDoc Ant task? I can't find any information about this elsewhere. ASDoc generation worked flawless before I installed the 3.6 SDK.

回答1:

Incompatibility issues with the new compiler may require you to download the AIR 3.6 SDK version that doesn't include ASC 2.0. It, too, is available from the download site, although it's not immediately noticeable.