Problem with AirSDK

mordesku's Avatar

mordesku

18 Dec, 2012 02:00 PM

My build.gradle look's like this:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.6'
    }
}

apply plugin: 'gradlefx'
flexHome = "/Users/mordesku/Applications/AdobeAIRSDK"
version = '1.0-SNAPSHOT'
type = 'air'

repositories {
        mavenCentral()
    mavenRepo name: 'yoolab-releases',      url: "http://projects.yoolab.org/maven/content/repositories/releases"
        maven {
            name 'xxx-artifactory'
            credentials {
                username 'xxxx'
                password 'xxxx'
            }
            url "http://xxx.xxx.pl/artifactory/plugins-release-local"
        }
        
}

//dependency versions
ext.as3commons_lang_version = '0.3.2'

dependencies {
    merged group: 'org.as3commons', name: 'as3commons-lang', version: as3commons_lang_version, ext: 'swc'
//        airSDK  group: 'com.adobe', name: 'AdobeAIRSDK', version: '3.5', ext: 'zip'
}

air {
    storepass = 'xxxx'
    includeFileTrees = [fileTree(dir: 'src/main/flex/', include: 'assets/appIcon.png')]
}

When building I got that error:

jablecznik:builder mordesku$ gradle build

FAILURE: Build failed with an exception.

* What went wrong:
Error: 
[The path to the Flex home directory isn't valid (/Users/mordesku/Applications/AdobeAIRSDK): can't find 'flex-config.xml' at '/frameworks/flex-config.xml']

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.37 secs

But i got valid AirSDK 3.5

  1. Support Staff 1 Posted by Yennick Trevels on 18 Dec, 2012 02:10 PM

    Yennick Trevels's Avatar

    Does "/Users/mordesku/Applications/AdobeAIRSDK" also contain the Flex SDK? Because when you specify the flexHome property it should reference a Flex SDK which my optionally contain an AIR SDK.

  2. 2 Posted by mordesku on 18 Dec, 2012 02:28 PM

    mordesku's Avatar

    Thx, it works, Now got many other errors but i think i can handle it myself.

  3. Yennick Trevels closed this discussion on 07 Jan, 2013 01:16 PM.

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