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

  <icon>
        <image16x16>/icons/icon16.png</image16x16>
        <image29x29>/icons/icon29.png</image29x29>
        <image32x32>/icons/icon32.png</image32x32>
        <image36x36>/icons/icon36.png</image36x36>
        <image48x48>/icons/icon48.png</image48x48>
        <!--<image50x50>/icons/icon50.png</image50x50>-->
        <image57x57>/icons/icon57.png</image57x57>
        <!--<image58x58>/icons/icon58.png</image58x58>-->
        <image72x72>/icons/icon72.png</image72x72>
        <!--<image96x96>/icons/icon96.png</image96x96>-->
        <!--<image100x100>/icons/icon100.png</image100x100>-->
        <image114x114>/icons/icon114.png</image114x114>
        <image128x128>/icons/icon128.png</image128x128>
        <!--<image144x144>/icons/icon144.png</image144x144>-->
        <image512x512>/icons/icon512.png</image512x512>
        <!--<image1024x1024>/icons/icon1024.png</image1024x1024>-->
    </icon>



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???

thanks


Attachment(s):
Screen Shot 2013-11-08 at 16.06.11.png
6 comments

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">
          <files-to-package>
            <FilePathAndPathInPackage file-path="$MODULE_DIR$/icons" path-in-package="icons" />
          </files-to-package>
        </packaging-android>

0

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.

0

Thanks, but this is not solve the problem:

    <icon>
        <image16x16>icons/icon16.png</image16x16>
        <image29x29>icons/icon29.png</image29x29>
        <image32x32>icons/icon32.png</image32x32>
        <image36x36>icons/icon36.png</image36x36>
        <image48x48>icons/icon48.png</image48x48>
        <!--<image50x50>icons/icon50.png</image50x50>-->
        <image57x57>icons/icon57.png</image57x57>
        <!--<image58x58>icons/icon58.png</image58x58>-->
        <image72x72>icons/icon72.png</image72x72>
        <!--<image96x96>icons/icon96.png</image96x96>-->
        <!--<image100x100>icons/icon100.png</image100x100>-->
        <image114x114>icons/icon114.png</image114x114>
        <image128x128>icons/icon128.png</image128x128>
        <!--<image144x144>icons/icon144.png</image144x144>-->
        <image512x512>icons/icon512.png</image512x512>
        <!--<image1024x1024>icons/icon1024.png</image1024x1024>-->
    </icon>



Attachment(s):
Screen Shot 2013-11-08 at 16.43.12.png
Screen Shot 2013-11-08 at 16.42.17.png
0

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..

0

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.

0

Please sign in to leave a comment.