Failed to export AIR release assembly with icons specified in app.xml

I keep getting an error when trying to export an assembly of an AIR release:

Error creating AIR file: Foo-app.xml: error 303: icon /C:/Users/Fred/AppData/Local/Temp/assets/icon_16.png is missing from the package

The directory is as follows:

Foo/
  src/
  assets/
  bin/

app-xml indicates the icons as

<icon>
  <image16x16>assets/icon_16.png</image16x16>
  <image32x32>assets/icon_32.png</image32x32>
  <image48x48>assets/icon_48.png</image48x48>
<!-- <image128x128>assets/icon_128.png</image128x128>    -->
</icon>

I tried moving the assets / bin directory to bin / and putting the parent pronoun (..) in the tag.

I embed images in the application this way:

        [Embed(source="../assets/biocurious_logo.png")]
        public var applicationIconClass : Class;

        [Embed(source="../assets/biocurious_eye_16_16.png")]
        public var applicationIcon16Class : Class;

        [Embed(source="../assets/biocurious_eye_32_32.png")]
        public var applicationIcon32Class : Class;

        [Embed(source="../assets/biocurious_logo_48_48.png")]
        public var applicationIcon48Class : Class;

        [Embed(source="../assets/biocurious_logo_128_128.png")]
        public var applicationIcon128Class : Class;

The compiler does not complain that it cannot find files.

I fulfilled the specified requests here and used Google in general. I have no idea what to do next.

Any ideas?

+3
source share
4 answers

So, a couple of things break out at me.

  • , - / (.. )? , - swf.
  • application.xml , , ( .. /assets assets/).

, , .air , (.air .swc ).

+1

, src.

+3

- : "303 app.xml "

  • create an assets folder inside src instead of application folder
  • try to install all versions of icon sizes

    <!-- The icon the system uses for the application. For at least one resolution, 
    specify the path to a PNG file included in the AIR package. Optional. --><icon>
    <image16x16>assets/icon16.png</image16x16>
    <image32x32>assets/icon32.png</image32x32>
    <image48x48>assets/icon48.png</image48x48>
    <image72x72>assets/icon72.png</image72x72>
    <image128x128>assets/icon128.png</image128x128></icon>
    

Hope this helps

+2
source
  • If you insert images into the application using [Embed (source = "/images/info_emb.png)), then use the same image elsewhere in your application so that it is not in the released package.
  • Use separate images for each.
+1
source

All Articles