abnormal frequency of having "Error: unable to open 'C:\Users\root\.gradle\gradleFx\sdks\092a5248d9cdfbafbb644b10b0ea2ed7adfd06e9\frameworks\libs\player\11.1\playerglobal.swc'."

wood's Avatar

wood

07 Mar, 2014 03:30 AM

Although I explicitly specify the version of target player ("-target-player=12.0") in additionalCompilerOptions,
50% of chance is successful to build with 12.0/playerglobal.swc and fails with Error: unable to open 'C:\Users\root.gradle\gradleFx\sdks\092a5248d9cdfbafbb644b10b0ea2ed7adfd06e9\frameworks\libs\player\11.1\playerglobal.swc'.

  1. Support Staff 1 Posted by Yennick Trevels on 07 Mar, 2014 07:12 AM

    Yennick Trevels's Avatar

    Hi,

    I guess you're still using the standalone AIR SDK without Flex, right?
    It's strange that the 11.1 version is shown there, because we never reference that explicitly in our code (except here https://github.com/GradleFx/GradleFx/blob/7c160f4ab68b1d62109349826..., but that shouldn't matter I think). And the latest AIR SDK's config.xml files all reference 12.0. Can you try to find out where that 11.1 version comes from?

  2. 2 Posted by wood on 07 Mar, 2014 12:36 PM

    wood's Avatar

    Let me find it and try to fix it for you

  3. 3 Posted by wood on 07 Mar, 2014 03:54 PM

    wood's Avatar

    FYI. I decompiled the compiler.jar and I found two consts, majorVersionTarget(11) and minorVersionTarget(1), in com.adobe.flash.compiler.config.Configuration

  4. Support Staff 4 Posted by Yennick Trevels on 10 Mar, 2014 08:19 AM

    Yennick Trevels's Avatar

    Ok, so that explains where the version is coming from. Now we have to figure out why it's using that one instead of your supplied target-player version.

    Can you post the output of the options being used during the compile?
    Also, is it still the following configuration you posted earlier in another thread?

    buildscript {
      repositories {
        mavenCentral()
      }
    
      dependencies {
        classpath group: "org.gradlefx", name: "gradlefx", version: "0.8.1"
      }
    }
    
    apply plugin: "gradlefx"
    
    additionalCompilerOptions = [
      "-allow-source-path-overlap=true",
      "-omit-trace-statements=true",
      "-as3=true",
      "-debug=false",
      "-es=false",
      "-optimize=true",
      "-show-actionscript-warnings=true",
      "-strict=true",
      "-target-player=12.0",
      "-verbose-stacktraces=false",
      "-warnings=true",
      "-load-config=air-config.xml"
    ]
    
    srcDirs += ["src"]
    output = "greensock"
    
    type = "swc"
    frameworkLinkage = "none"
    
  5. 5 Posted by wood on 10 Mar, 2014 01:40 PM

    wood's Avatar
    Starting Build
    Settings evaluated using empty settings script.
    Projects loaded. Root project using build file '/Users/wood/Desktop/GreenSock-AS3/build.gradle'.
    Included projects: [root project 'GreenSock-AS3']
    Evaluating root project 'GreenSock-AS3' using build file '/Users/wood/Desktop/GreenSock-AS3/build.gradle'.
    Determining SDK install location
    Determining SDK install location
    All projects evaluated.
    Selected primary tasks 'clean', 'build'
    Tasks to be executed: [task ':clean', task ':compileFlex', task ':copytestresources', task ':test', task ':build']
    :clean (Thread[main,5,main]) started.
    :clean
    Executing task ':clean' (up-to-date check took 0.0 secs) due to:
      Task has not declared any outputs.
    :clean (Thread[main,5,main]) completed. Took 0.007 secs.
    :compileFlex (Thread[main,5,main]) started.
    :compileFlex
    Executing task ':compileFlex' (up-to-date check took 0.184 secs) due to:
      Output file /Users/wood/Desktop/GreenSock-AS3/build has changed.
      Output file /Users/wood/Desktop/GreenSock-AS3/build/greensock.swc has been removed.
    Compiling with compc-cli
        -external-library-path+=/Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc
        -source-path+=/Users/wood/Desktop/GreenSock-AS3/src
        -include-sources+=/Users/wood/Desktop/GreenSock-AS3/src
        -allow-source-path-overlap=true
        -omit-trace-statements=true
        -as3=true
        -debug=false
        -es=false
        -optimize=true
        -show-actionscript-warnings=true
        -strict=true
        -target-player=12.0
        -verbose-stacktraces=false
        -warnings=true
        -load-config=air-config.xml
        -output=/Users/wood/Desktop/GreenSock-AS3/build/greensock.swc
    [ant:java] Java Result: 4
    :compileFlex FAILED
    :compileFlex (Thread[main,5,main]) completed. Took 3.894 secs.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':compileFlex'.
    > java.lang.Exception: compc-cli execution failed: Loading configuration: /Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/air-config.xml
      
      command line
      Error: unable to open '/Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/libs/player/11.1/playerglobal.swc'.
      
      
    
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
    

    Of course, 50% of chance is successful to build. I also did a test with directly using compc and it has the same issue. I can conclude this must be adobe issue

    /Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/bin/compc -source-path+=/Users/wood/Desktop/GreenSock-AS3/src -include-sources+=/Users/wood/Desktop/GreenSock-AS3/src -target-player=12.0 -output=greensock.swc
    Loading configuration: /Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/flex-config.xml
    
    /Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/flex-config.xml:47
    Error: unable to open '/Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/libs/player/11.1/playerglobal.swc'.
    /Users/wood/.gradle/gradleFx/sdks/272e318e966ad151cde47a46bd316480812ed314/frameworks/flex-config.xml (line: 47)
            </external-library-path>
    
  6. Support Staff 6 Posted by Yennick Trevels on 10 Mar, 2014 02:11 PM

    Yennick Trevels's Avatar

    I'm not sure this will solve the issue, but I noticed in the thread below that you're using MacOS and the AdobeAIRSDK.zip file (and also the AIR SDK repo location mentions "win"). The zip file is intended for Windows users, while the tbz2 file is intended for MacOS.

    http://support.gradlefx.org/discussions/problems/106-compc-executio...

    In another thread someone else had a similar (but slightly different) problems which was also caused by switching up the SDK versions.

    http://support.gradlefx.org/discussions/problems/94-problems-with-f...

    So I suggest you try to use the MacOS version of the AIR SDK and see if that fixes the issue.

  7. 7 Posted by wood on 10 Mar, 2014 02:24 PM

    wood's Avatar

    I did use Mac Version

    airSDK files("/Users/wood/Desktop/AIRSDK_Compiler.tbz2")
    

    See my last updated post. I run "compc" directly and it has the same issue

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

Generic

? 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