Problem build file .swf with gradleFX

quanhungbang's Avatar

quanhungbang

28 Jan, 2016 10:13 AM

Error in image. Please help me resolve it. Thanks , anyone.

  1. 1 Posted by quanhungbang on 28 Jan, 2016 10:15 AM

    quanhungbang's Avatar

    image

  2. 2 Posted by quanhungbang on 28 Jan, 2016 10:16 AM

    quanhungbang's Avatar

    image

  3. Support Staff 3 Posted by Yennick Trevels on 31 Jan, 2016 05:09 PM

    Yennick Trevels's Avatar

    Hi,

    I don't think this is a GradleFx issue. Based on the error it looks like the same issue as described here: http://stackoverflow.com/questions/3125364/warning-css-type-selecto...

  4. 4 Posted by quanhungbang on 02 Feb, 2016 04:34 AM

    quanhungbang's Avatar

    There are dependency in Maven:
    --------------------------------------------------
         <dependency>
    <groupId>com.adobe.flex.framework</groupId>
    <artifactId>framework</artifactId>
    <version>${flex.sdk.version}</version>
    <type>swc</type>
    <scope>caching</scope>
    </dependency>
    ------------------------
    I want convert it to GradleFx, when build flex. I can't find : scope is caching in GradleFX. Docs GradleFX have scopes:
    merged
    internal
    external
    rsl
    test
    theme

  5. Support Staff 5 Posted by Yennick Trevels on 02 Feb, 2016 07:43 AM

    Yennick Trevels's Avatar

    As I understand it the 'caching' scope in FlexMojos (Maven) is used for runtime shared libraries (RSLs). In GradleFx the 'rsl' configuration (or 'scope' as you call it) is meant for this. So instead of 'caching' you can probably use 'rsl' in GradleFx.

    Now I also see that you try to use the same Flex SDK dependencies as when using FlexMojos. GradleFx isn't really build to work with these Flex Framework dependencies as they were specifically created for FlexMojos.
    In GradleFx you can specify the Flex SDK in a slightly different way. See http://doc.gradlefx.org/en/latest/sdk_auto_install.html for more information on this.

    Once you've defined the Flex SDK like that you can define your rsl's relative to the 'flexHome' convention property, like this:

    afterEvaluate {
        dependencies {
            rsl files("${flexHome}/frameworks/libs/framework.swc")
        }
    }
    
  6. 6 Posted by quanhungbang on 02 Feb, 2016 08:37 AM

    quanhungbang's Avatar

    Thank you Yennick, I will review your good idea. Once again, thanks so much.

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

Recent Discussions

24 Jun, 2017 02:18 PM
10 Jun, 2017 04:16 PM
24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM

 

11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM
06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM