How can I change the playerglobal.swc version?

ido.ran's Avatar


09 Aug, 2014 08:50 AM

I'm trying to build AIR library (swc) with GradleFX and I'm failing due to this error:

Caused by: java.lang.Exception: compc execution failed: command line: Error: unable to open '/Applications/Apache Flex/Flex4.12.1_AIR13.0/frameworks/libs/player/11.1/playerglobal.swc'

I ran compileFlex with -debug and I saw this line:
'-external-library-path+=/Applications/Apache Flex/Flex4.12.1_AIR13.0/frameworks/libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc'

but simply setting targetPlayerXVersion did not seem to have any affect.

How can I change it to version 13.0 ?

  1. Support Staff 1 Posted by Yennick Trevels on 09 Aug, 2014 09:30 AM

    Yennick Trevels's Avatar

    Can you try to specify the target-player option like this:

    additionalCompilerOptions = [
  2. 2 Posted by ido.ran on 09 Aug, 2014 09:40 AM

    ido.ran's Avatar

    Yes! :)
    This seem to work and I was able to successfully build the swc file.
    Now I'm moving on to the bigger issue, compiling application that depends on that library.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac