Friday, 27 July 2012

Apache Flex SDK 4.8 not working with Flash Builder 4.6


I downloaded the just released Apache Flex SDK 4.8 and tried to use it in Flash Builder 4.6 with the AIR SDK 3.3 and 3.4 Beta, but it doesn't work. I used the usual overlay technique, first copying the Flex 4.8 SDK in a new folder in my Flash Builder SDK directory and then copying the AIR SDK right over it. This has been working ever since (Flex SDK 4.6 and AIR SDK 3.3 for instance works just fine).


However, when running a build using Flex SDK 4.8 with either AIR SDK, an error is thrown as reported here.


I found the variable ${airHome} in two files that have changed since Flex SDK 4.6:


In the Flex sdk directory under frameworks are two file: air-config.xml and airmobile-config.xml.


Searching for "airhome" will find the string at two locations in each file. Once the variable is removed including the following /frameworks/ part, the above error disappears:


change


{airHome}/frameworks/libs/air

to 


libs/air

After that the first error message disappears, another error crops up for which I haven't found a solution yet:



Description Resource Path Location Type
1045: Interface ISWFContext was not found. ESE_LeisurePOS line 25 Flex Problem


The same project is perfectly compiled under Flex SDK 4.6 and AIR SDK 3.x.


Maybe someone has an idea what the issue could be. 

9 comments:

  1. Supper simple: http://people.apache.org/~bigosmallm/installapacheflex/

    ReplyDelete
    Replies
    1. hey love the installer. Thanks for doing that. I haven't tried it yet though.

      Delete
  2. Thanks a lot. Would be useful if this link is placed here...

    http://incubator.apache.org/flex/download.html

    ...as it is likely to be the first page one looks for the installer.

    ReplyDelete
  3. Thanks a lot. Would be useful though if this link is listed here...

    http://incubator.apache.org/flex/download.html

    ...as it is the first place one would look for it.

    ReplyDelete
  4. Matthias,

    Thanks for this post. We are still working on the packager. A few critical pieces like auto-update mechanism (complete, not tested), automatic MD5 signature verification of downloaded Flex SDK, automatic download mirror site selection, etc. are being worked on as we speak.

    I hope you will be able to test it out when push the next builds testing these functionalities.

    Thanks,
    Om
    (bigosmallm@apache.org)

    ReplyDelete
  5. Looking forward. Right now I'm fine as the installer worked like a charm. I will now spend some time testing the new SDK with our existing development. So far I haven't run into any problems :-)

    Thanks.

    ReplyDelete
  6. I keep getting an error when the installer attempts to download the binary Zip file for the 4.8 SDK. The installer simply goes to "Installation Aborted".

    Is it a firewall issue?

    ReplyDelete
    Replies
    1. If I recall correctly, the installer downloaded the SDK zip file again. The question of course is which protocol it uses. If it is FTP instead of HTTP, it could be a firewall issue.

      Are you doing this within a corporate network or from home?

      Delete
  7. Interesting information I haven’t been through such information in a long time.
    test builder

    ReplyDelete