How to ensure framework is on external-library-path for swc project?

ross.attrill's Avatar

ross.attrill

05 Sep, 2012 07:13 AM

I am compiling an SWC module and getting warnings from the SDK like this:

Warning: The swc 'D:\opt\adobe\flex_sdk_4.6.0.23201B\frameworks\libs\advancedgrids.swc' 
has style defaults and is in the library-path, which means dependencies will be linked 
in without the styles.  
This can cause applications, which use the output swc, to have missing skins.  
The swc should be put in the external-library-path.

My build file looks like this:

type = 'swc'
frameworkLinkage = 'external'

srcDirs = ['/src/main/flex']

dependencies {

    external group: 'com.amcharts', name: 'amChartsFB4', version: '1.8.3.3', ext: 'swc'
    ...
    external group: 'com.fiber', name: 'fiber', version: '4.5.0', ext: 'swc'
    external group: 'com.fiber', name: 'fiber_rb', version: '4.5.0', ext: 'swc'
    external group: 'com.dcradswcs', name: 'serializers', version: '4.5.0', ext: 'swc'
    external group: 'com.dcradswcs', name: 'serializers_rb', version: '4.5.0', ext: 'swc'
    external group: 'com.flexframework', name: 'spark_rb', version: '4.5.1', ext: 'swc'
    external group: 'com.flexframework', name: 'framework_rb', version: '4.5.1', ext: 'swc'
    external group: 'com.adobe', name: 'as3corelib', version: '0.93.0', ext: 'swc
}

I have tried different settings for frameworkLinkage including 'merged' but get the same behaviour.

The problem indicated by the warning message appears to be giving me runtime exceptions with AdvancedDataGrid so I need to work out how to get rid of the warning.

Is there a recommended way to fix this with GradleFx?

  1. Support Staff 1 Posted by Yennick Trevels on 05 Sep, 2012 02:54 PM

    Yennick Trevels's Avatar

    I think you can fix it by explicitly declaring the advancedgrids.swc library as an external dependency, like this:

    external files("${flexHome}/frameworks/libs/advancedgrids.swc")

  2. 2 Posted by ross.attrill on 05 Sep, 2012 11:21 PM

    ross.attrill's Avatar

    Thank you very much Yennick. This has removed the compiler warning.

  3. Yennick Trevels closed this discussion on 06 Sep, 2012 12:00 AM.

Comments are currently closed for this discussion. You can start a new one.

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