|
|
|
Same error is generated when switching the SDK of a previous AIR project to 3.2 (FlexBuilder updated to 3.0.2).
Same fix - change to the application-app.xml file's namespace to 1.5 is the solution. Would be handy if this error could be intercepted to report a more meaningful message by the time Gumbo is released. Actually, there are two solutions: (1) change the app.xml namespace to 1.5, or (2) switch the project to use an earlier SDK version (e.g. 3.1). Users might want to do the latter if they want to retain the ability to deploy the application under pre-1.5 versions of AIR.
nj's solution #2 doesn't quite work, since the user chooses the SDK on import. If they choose a newer SDK than 3.1 in this case, they get this problem. We decided not to do any code re-writing on import, including the app xml descriptor file. If a 1.0/1.1 air app cannot be built properly with a newer SDK, an error should really be generated by the compiler saying this SDK is not compatible with their AIR app version, that way the user would see this and it would be obvious how to fix it. Can we push this to the AIR/compiler team?
Mac, can you file an AIR bug. I agree with George that the adl should be backwards compatible and allow compiling older app descriptors.
logged air bug Bug #: 2278598 -- back to qrb to decide what to do with this bug
First, the tool is ADL not ADT. ADT is for packaging an AIR file.
This problem is probably caused by API Versioning feature. The root content SWF file is generated in SWF10 file format by newer SDk by default. And AIR apps with namespace lower than 1.5 are not allowed to work with SWF10 root content file. This is by design. The ways to prevent this error is either changing the namespace to 1.5, or tell Flex Builder to generate SWF9 root content file. Older versions of ADL (and ADT) don't have this API Versioning feature. So it is possible to launch a SWF10 root content file with a namespace 1.0 or 1.1 when using those older versions of SDK. IRB deferred. We will be piping ADL errors to the FB output panel so it should be more obvious what the issue and solution are to users
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<application xmlns="http://ns.adobe.com/air/application/1.5">