Showing posts with label air. Show all posts
Showing posts with label air. Show all posts

Friday, February 20, 2009

AIR + ANT + out of memory

I kept running into an OutOfMemoryError issue during compile of my AIR app using ANT.

[mxmlc] java.lang.OutOfMemoryError

the fix was simple: set fork="true" and maxmemory="512m" in my mxmlc
<mxmlc compiler.debug="false"
file="${MAIN_SOURCE_FILE}"
output="${dist}/${APP_ROOT_FILE}"
configname="air"
fork="true"
maxmemory="512m"

...


more info can be found here: Flexcoverhints

Thursday, February 19, 2009

air application icons

I ran into the same problem many seem to have: my AIR application icons seems to be throwing a compile error when I try to export release build of my project.

Error creating AIR file: 303: ERROR, [...filename...]

This is a known bug... still open apparently ( in a few places ) when you try to export from Eclipse

http://bugs.adobe.com/jira/browse/FLEXDOCS-427
http://bugs.adobe.com/jira/browse/FB-11712

My only working solution is to place the icon files directly in the src folder rather than in images/assets/icon.png