How can I add icon to my AIR mobile application???

Hi there,

On the Project Structure panel "Files and Folders to package" section I add the folder of the icons.

In the application descriptor setup the icons path


but when I try to compile the project, got "error 303: Icon icons/iconXXX.png is missing from package"

what can I do more, for work this???


Screen Shot 2013-11-08 at 16.06.11.png
Comment actions Permalink

Here is the relevant section of my iml

<packaging-android enabled="true" use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/AstroChaos-app.xml" package-file-name="AstroChaos">
            <FilePathAndPathInPackage file-path="$MODULE_DIR$/icons" path-in-package="icons" />

Comment actions Permalink

Try to set relative paths to icons without leading slash: both in the app descriptor template and in the 'Its relative path in package' field at the Android tab. If you also build iOS app - make sure that icons are included in the package at the iOS tab as well.

Comment actions Permalink

Thanks, but this is not solve the problem:


Screen Shot 2013-11-08 at 16.43.12.png
Screen Shot 2013-11-08 at 16.42.17.png
Comment actions Permalink

And here is my iml file

Comment actions Permalink

I noticed one error in your configuration: 'lib' folder is configured both as a folder with SWCs and as a source folder. I guess it shouldn't be a source folder. But that's not the problem that may cause packaging error.

My second recommendation is to check run configuration (Run | Edit configurations). I guess you have 'Override main class' checked there. Do you really need it? It is recommended that run configuration doesn't override main class specified in build configuration (Project Structure dialog) unless you test some temporary app.
I don't think this can be the cause of the error though.

I tried to create a sample app like yours and it works for me. What IntelliJ IDEA version do you use?
Sorry for stupid quess, but may be icons folder contents was occasionally removed or files have different case..

Comment actions Permalink

Sorry for the late reply, I had to create separated application description for iOS and for Android, and the probleme is gone :)

thanks for the help.


Please sign in to leave a comment.