OpenFL has broken


#1

I just updated my openfl using haxelib run openfl setup and now nothing compiles anymore. Even the basic openfl create program crashes with:

image

My app is the basic sample and I’m using FlashDevelop 5. On building it I get:

image

My versions are Haxe 3.4.4, FlashDevelop 5.3.1 and AIR SDK 19.


#2

Check your lime version, and try update lime


#3

To update libs you have to run

haxelib upgrade

This will check all your libraries and ask you if you want to update.


#4

Oh thank you, thank you! Stuff builds now, however I get a new error:

cmd: "C:\Tools\Haxe\haxe/haxelib" run lime build "project.xml" air -debug -Dfdb
Running Post-Build Command Line...
cmd: openfl test air -debug
invalid application descriptor: Unknown namespace: http://ns.adobe.com/air/application/25.0
Build halted with errors.
Done(1)

It says Unknown namespace: …/air/application /25.0

However my AIR application.xml starts with v28, not v25, so where does it get 25 from?

<?xml version="1.0" encoding="utf-8" ?> 
<application xmlns="http://ns.adobe.com/air/application/28.0">

#5

This is the generated application.xml we use

Do we need to try and detect the version of Adobe AIR you are using, and write that into the file, or can you reference an older XMLNS with a newer AIR SDK?


#6

I think the main issue here is the AIR SDK does not recognize v25. This is because I’m using an older AIR SDK because my app is not compatible with the latest SDK. Can you add a variable for the application version, instead of hard coding 25.0??

Currently I’ve hand edited the template xml but its just a hack. But at least it works!


#7

Just added support in the Lime tools for using <config:air sdk-version="25.0" /> in a project.xml for configuring the SDK value used in our generated application.xml. However, if we can use older SDK values just fine in the application.xml, then perhaps we should consider a lower version. I’m not sure if you know what our version minimum might be, based on the features we’re using?