Skip to main content
Participant
February 15, 2014
Question

Packaging Android native extension with platform.xml and native resources

  • February 15, 2014
  • 1 reply
  • 1242 views

I'm trying to package an ANE to add native resources to it. The process works fine without native resources and platform.xml (so the swc, the .swf and .jar and everything else is set up properly). Just trying to add resources.

Here's the command I'm using:

adt.bat   -package -target ane myane.ane extension.xml -swc myswc.swc -platform Android-ARM -platformoptions platform.xml -C Android-ARM .

And I'm getting this:

Missing resource folder res for platform Android-ARM

My platform xml looks like this:

<platform xmlns="http://ns.adobe.com/air/extension/4.0">

          <packagedResources>

                    <packagedResource>

                              <packageName>my.package.name</packageName>

                              <folderName>res</folderName>

                    </packagedResource>

          </packagedResources>

</platform>

And my folder structure:

- Android-ARM

    - library.swf

    - myjar.jar

- res

   - layout, etc (android resources)

- platform.xml

- extension.xml

I tried putting the res folder inside Android-ARM but I'm getting the same error.

Is there a sample I can start off of for using native resources with the R.* mechanism? I feel like I'm missing something silly...

This topic has been closed for replies.

1 reply

Nimisha1
Participating Frequently
February 18, 2014

Hi,

Can you please share the contents for packaging ANE in the same folder structure with me so that I can give it a try at my end as well and look into this problem? My email id is nimisha1@adobe.com.

-Nimisha

radu_kAuthor
Participant
February 19, 2014

This setup is working fine. The error message I was getting was misleading, the issue was that in fact caused by an empty res folder (well, not completely empty, just filled with empty folders).