Search code examples
actionscript-3apache-flexairflash-builder

Trying to overlay new AIR 3.8 SDK over the Apache Flex SDK that comes with 3.4


I'm trying to overlay new AIR 3.8 SDK over the Apache Flex SDK that comes with 3.4

I'm using FB 4.7 and the apache flex sdk download you can get here: https://flex.apache.org/installer.html

So, the thing is even though I downloaded it yesterday It seems to come with Adobe AIR 3.4 but I need to have 3.8

So.... then I went and downloaded the AIR SDK for Mac WITHOUT the new compiler, you'll see the special Flex link below here: http://www.adobe.com/devnet/air/air-sdk-download.html

I then overlayed the Air SDK over the SDK the flex downloader put together for me... I copy+pasted the folder and said "keep newer" that seemed to be the best way to do it I could find online...

So now my issue is that when I set the namespace to 3.8 I get a compile error saying "error 102: Invalid namespace http://ns.adobe.com/air/application/3.8"

BUT when I set the namespace back to 3.4 now it get an error telling me that I need to set the namespace to 3.8.... but when I do that it says I get the previous error...

So what's going on here? Has anyone know what I'm doing wrong?


Solution

  • Open up Terminal (or your command line of choice) and run this:

    ditto AIR Flex
    

    where AIR is the path of the newly downloaded AIR SDK and Flex is the path of your Flex SDK (you can just drag+drop the folder from Finder into Terminal to get the actual path).

    Basically, on Mac when you do a mass copy-paste, it will delete all folders that are being pasted and already exist, rather than merge them (or at least this is what appears happens). So you are actually deleting bits and pieces that you actually need from the Flex SDK. The ditto command will preserve these files.

    Note: Make sure you backup your Flex SDK (for obvious reasons). If you go to debug Android on-device and cannot, you'll need to grab the Android related launch files from the old SDK to make it work for some devices (such as the Nexus 4). I do not know the location of the files off the top of my head (I run Windows at home, Mac at work), but I could find them out if you need them.