Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Packaging Android native extension with platform.xml and native resources

$
0
0

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


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>