tag:support.gradlefx.org,2011-05-23:/discussions/problems/2187-how-can-i-change-the-playerglobalswc-versionGradleFx: Discussion 2016-08-11T02:29:31Ztag:support.gradlefx.org,2011-05-23:Comment/340803222014-08-09T08:50:23Z2014-08-09T08:50:23ZHow can I change the playerglobal.swc version?<div><p>I'm trying to build AIR library (swc) with GradleFX and I'm
failing due to this error:</p>
<p>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'</p>
<p>I ran compileFlex with -debug and I saw this line:<br>
'-external-library-path+=/Applications/Apache
Flex/Flex4.12.1_AIR13.0/frameworks/libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc'</p>
<p>but simply setting targetPlayerXVersion did not seem to have any
affect.</p>
<p>How can I change it to version 13.0 ?</p></div>ido.rantag:support.gradlefx.org,2011-05-23:Comment/340803222014-08-09T09:30:20Z2014-08-09T09:30:20ZHow can I change the playerglobal.swc version?<div><p>Can you try to specify the target-player option like this:</p>
<pre>
<code>additionalCompilerOptions = [
"-target-player=13.0"
]</code>
</pre></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/340803222014-08-09T09:40:39Z2014-08-09T09:40:39ZHow can I change the playerglobal.swc version?<div><p>Yes! :)<br>
This seem to work and I was able to successfully build the swc
file.<br>
Now I'm moving on to the bigger issue, compiling application that
depends on that library.</p></div>ido.ran