Developing and using Adobe AIR native extensions for Android devices

I was using this tutorial:
"Developing and using Adobe AIR native extensions for Android devices"
http://www.adobe.com/devnet/air/articles/ane-android-devices.html
When packing the Flex mobile ANESampleTest to deploy on an Android device, the below error happens
Error occurred while packaging the application:
aapt tool failed:invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/drawable-xxhdpi
invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw600dp
invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw720dp-lan
Does anyone know what the issue might be?

Did you find a workaround for the Error? I'm getting the same and I can't seem to find any solution.

Similar Messages

  • Adobe Air native extension for admob

    Dear Adobe Team,
    We have recently purchased Adobe Air native extension for admob for android & ios
    but every time we upload our app to an ipad or iphone, the app crashes.
    We have carefully followed your instructions, and we're sure we've not made a mistake writing the action script 3 code.
    We need your help in solving this problem urgently, as we are now running behind schedule in uploading our app.
    Thanks very much,
    Amir Steklov and Dorit Leshnick

    Before I was also searched a lot to find good  add network and also Admob.
    Finally we done successfull integration using..  working fine in all IOS devices. not yet released to Apple app store
    http://code.google.com/p/flash-air-admob-ane-for-ios/source/browse/trunk/admobaneiphone/sr c/admobtest.as?r=2
    You can check our add setups using Air ANE's for our android game ExpressTrain.
    https://play.google.com/store/apps/details?id=air.timuzsolutions.expresstrain&feature=sear ch_result#?t=W251bGwsMSwyLDEsImFpci50aW11enNvbHV0aW9ucy5leHByZXNzdHJhaW4iXQ..
    you no need to buyAdobe Air ANE's everything is free but all u need to do is googling,
    hope this will help.
    Bala
    Message was edited by: vamsibalu

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • Adobe AIR native extension for Chromecast?

    Is it available or is the Adobe AIR team working on a simple way to cast to Chromecast from AIR/Android SDK ?
    Chhers

    Google search brings up:
    https://github.com/renaudbardet/ANE-chromecast
    and a sample app:
    https://github.com/renaudbardet/AirCastSample
    but no idea on its status or future plans...

  • Getting some issues using adobe air 2.6 for android

    Hii, i am new to adobe air for android using flash cs5 development.  According to standard procedure  i have installed these softwares on my pc.
    1.Adobe flash cs5, 2.AIR sdk , 3.Adobe air for android and 4.android sdk also.
    is there any software or plugin is required  for making android application?
    so now to start develop an application i have opened flash cs5, in that we select a "new"  option, then we will select "AIR for Android" option, but instead of that option i'm getting option "Adobe AIR 2".
    Is there anybody to tell me how can i recover this problem? Or plz provide me any link that will help me to tell what is the actual procedure to develop  android application using CS5.?
    Any help will be useful.
    Thank you,
    Pravin Gate.

    Hi Pravin,
    Adobe had released extentions for flash CS5. Once the extention is installed, this is where you get the additional options in flash ide. The last extention for air on android was for air 2.5 and looks to have been recently removed from their site with the public launch of 2.6
    So using 2.6 there is no flash IDE support yet, but will be soon. The last extention i think was flashpro_extensionforair_p2_112210.zxp
    Personally, at this time i still have the 2.5 extention installed and launch directly from flash, this is what i am missing out on:
    2.6 new features
    At this time im not going to release anything compiled with the 2.5 extention, but my phone has 2.6 runtime so i belive the performance would be the same.
    You deffinitly should go right to 2.6 but if you wanted to play with the now outdated extention for 2.5 i can email it to you.

  • Adobe AIR Native Extensions

    We are planning to choose a new platform of our new convergent media device. Like to know whether we can develop our platform using Adobe AIR Native Extension for Linux OS?
    I came to know that Adobe has subscription based suuport for developers. If that is the case we can purchase support for development assistance on Linux based AIR Native Extensions. What we need are the FRE libraries and C code to run the Native extensions on Linux. I had acces to AIR 3.0 for Linux sometime back. Unfortunately our project look some time to mature.
    Please let us know about this so that we can base our plans on AIR/Linux native extensions.

    Four part Series, this is link to first part
    http://quetwo.com/2011/10/31/creating-an-windows-air-native-extension-with-eclipse-part-1/
    Another one
    http://www.flexjunk.com/2011/11/30/developing-an-air-native-extension-for-osx-and-windows- in-c/
    Hope those help.

  • In App Purchase Native Extension for Android

    Hi All
      I was wondering whether anyone has done any work on an In App Purchase native extension for Android?  If one does not already exist I am going to be starting work on one shortly. 
      I did a google search and found this stackoverflow post http://stackoverflow.com/questions/8053049/air-native-extensions-for-android-in-app-billin g .  The poster is having difficulty with the call back from the Android market.    One of the responses mentions that 'Native extensions have an issue with java libraries' .  Has anyone else come across this issue and if so how did you fix it? 
    thanks for any help you can provide!
    Mark

    I have just finished a (commercial) extension that lets you directly do in-app purchases on android from Actionscript 3. You can check it out here.

  • Air Native Extension for OS X. Cant call functions from native code.

    Hi, I am trying to build native extension for OS X.
    After creating context, I try to call native function with "call" method, but always I have an error "The extension context does not have a method with the name ..."
    In as3 code my ExtensionContext is not null, so it's okay. And in native objective-c code I have a function, which I call in as3 code.
    What should I do?
    Here my code.
    Objective-c:
    FREContext AirContext = nil;
        FREObject init(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
            return nil;
        FREObject someFunction(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
            FREDispatchStatusEventAsync(AirContext ,(uint8_t*) "SOME_EVENT", (uint8_t*) "some information" );
            return nil;
        void ANEContextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx, uint32_t* numFunctionsToTest, const FRENamedFunction** functionsToSet)
            NSLog(@"Entering ContextInitinalizer()");
            *numFunctionsToTest = 5;
            FRENamedFunction* func = (FRENamedFunction*) malloc(sizeof(FRENamedFunction) * *numFunctionsToTest);
            func[0].name = (const uint8_t*) "init";
            func[0].functionData = NULL;
            func[0].function = &init;
            func[1].name = (const uint8_t*) "someFunction";
            func[1].functionData = NULL;
            func[1].function = &someFunction
            // other blank functions
            *functionsToSet = func;
            AirContext = ctx;
            FREDispatchStatusEventAsync(AirContext ,(uint8_t*) "SOME_EVENT", (uint8_t*) "some information" );
        void ContextFinalizer(FREContext ctx) {
            NSLog(@"Entering ContextFinalizer()");
            NSLog(@"Exiting ContextFinalizer()");
        void ANEInitializer(void** extDataToSet, FREContextInitializer* ctxInitializerToSet, FREContextFinalizer* ctxFinalizerToSet )
            NSLog(@"Entering ExtInitializer()");
            *extDataToSet = NULL;
            *ctxInitializerToSet = &ContextInitializer;
            *ctxFinalizerToSet = &ContextFinalizer;
            NSLog(@"Exiting ExtInitializer()");
        void ANEFinalizer(void* extData)
            return;
    ActionScript3:
    public class MyANE extends EventDispatcher{
            private static var _instance:MyANE;
            private var extCtx:ExtensionContext;
            public function MyANE()
                if (!_instance)
                    if (this.isSupported)
                        extCtx = ExtensionContext.createExtensionContext("my.awesome.ane", null);
                        if (extCtx != null)
                            trace('context is okay'); //this trace works
                            extCtx.addEventListener(StatusEvent.STATUS, onStatus);
                        } else
                            trace('context is null.');
                _instance = this;
                else
                    throw Error('singleton');
        public static function getInstance():MyANE
                return _instance != null ? _instance : new MyANE();
        public function get isSupported():Boolean
                var value:Boolean = Capabilities.manufacturer.indexOf('Macintosh') > -1;
                trace(value ? 'supported' : 'not supported ');
                return value;
        private function onStatus(event:StatusEvent):void
                trace('Event', event, 'code', event.code, 'level', event.level); //this traсе does not works
         private function test(): void
              extCtx.call("someFunction"); //this throws error
    XML:
        <extension xmlns="http://ns.adobe.com/air/extension/3.9">
            <id>my.awesome.ane</id>
            <versionNumber>1.0.0</versionNumber>
            <platforms>
                <platform name="MacOS-x86">
                    <applicationDeployment>
                        <nativeLibrary>MyANE.framework</nativeLibrary>
                        <initializer>ANEInitializer</initializer>
                        <finalizer>ANEFinalizer</finalizer>
                    </applicationDeployment>
                </platform>
            </platforms>
        </extension>
    And this script Im using for build ANE:
        mv ../as3/bin/MyANE.swc .
        unzip MyANE.swc
        mv library.swf mac/
        rm catalog.xml
        rsync -a ../Obective-C/ANE/Build/Products/Debug/ANE.framework/ mac/ANE.framework/
        adt -package -target ane MyANE.ane extension.xml -swc MyANE.swc -platform MacOS-x86 -C mac .
        mv MyANE.ane ~/Work/_Projects/test/libs-ane/

    I haven't done Objective C in a long time, but if I'm not mistaken, it requires the semicolon to terminate a line of code. The line containing "func[1].function = &someFunction" does not have that termination and since that is the function you are trying to execute, maybe that is the source of the error.

  • Installing and using Adobe Air SDK 2.5 with Flash Professional CS4

    Hi,
    I am trying to install the Air SDK 2.5 with Flash Professional CS4 with the intention of creating a program to use Actionscript 3 to communicate with the UDP interface using datagrams. (The server is the IL2 device link interface) As I am very new to this development environment I was wondering if anyone could answer a few questions.
    1) Can I use datagram sockets with Air 2.5 with Actionscript 3 and Flash CS4?
    2) Is there special procedure for installing the AIR SDK 2.5 or do I use the instructions layout in "How to Overlay the Adobe Air 2 SDK for Use with Flash Professional - Flash professional CS4"?
    3) If I do use those instructions, when I edit the namespace for my application do I set it to 2.0 or 2.5?
    4) As a stepping stone to building my program I was trying to try to build the Actionscript 3  DatagramSocketExample program that is published by Adobe. Unfortunately I am getting a '1046: Type was not found or was not a compile-time constant: DatagramSocketDataEvent'.
    Is there a step by step tutorial on how to get the example code up and running?
    Thankyou for your time and patience with my noob questions
    Ian

    This was part of the AIR 2.0 beta release note, but I used this for 2.5 and it works nice.
    You can try it too an make sure you use 2.5 wherever the not says 2.0beta2.
    Goodluck.
    How to Update Flash CS4 to Use the AIR 2 Beta SDK
    If you use Flash CS4 Professional to build Adobe AIR applications, please follow the instructions below to manually update the version of the AIR SDK to use version 2.0.
    Update Flash CS4 Professional to version 10.0.2 at http://www.adobe.com/support/flash/downloads.html or select "Help > Updates... " from within Flash CS4.
    Quit Flash CS4 Professional if it is open.
    Navigate to the Flash CS4 installation folder. The default location on Windows is "C:\Program Files\Adobe\Adobe Flash CS4\" and on Mac OS "/Applications/Adobe Flash CS4/"
    Within the "Adobe Flash CS4" folder you should see a folder called "AIK1.5". If this folder is not present repeat step #1.
    Rename the folder "AIK1.5" to "AIK1.5 OLD" or delete it if you do not need to save a copy of it.
    Make a new folder called "AIK1.5"
    Download the Adobe AIR 2 SDK from the labs website and uncompress the contents of the folder to the new "AIK1.5" folder you just created.
    Copy the "airglobal.swc" file located within the "Adobe Flash CS4/AIK1.5/frameworks/libs/air/" folder into the "Adobe Flash CS4/Common/Configuration/ActionScript 3.0/AIR1.5/" folder.
    Flash CS4 is now configured to use the AIR 2 beta 2 SDK.
    In order to take advantage of the new AIR 2 beta 2 features, you will need to update your application descriptor file to use the "2.0beta2" namespace.

  • Facing error#3500 while running AIR native extension for windows

    Hi,
    I am stuck in a problem regarding AIR native extension from couple of days.Whenever I tried to run an extension for windows it gives error code 3500 (extension context cannot have the method ie methodname).I am doing all things correctly but don't know where I lack.I am using Flash Builder 4.6 and 64 bit machine.I made the sample extension POC for android ,they are working fine.No such issue.
    Please post your valuable comments.Eagerly waiting for reply.
    Thanks

    Hi,
    Finally I got the answer to my problem.Actually I dont have the dependency dll of .net framework 4.So I nstall these and now my code is working fine.
    Thanks

  • Exception in C++ air native extension for Mac OS X

    I develop air extension for ios and mac os x.
    I use the same code on ios and mac.
    For ios all good.
    But on mac - have problems.
    In extension I use std::vector. Code example:
    vector<Type*>* types; types = new vector<Type*>();  Type* type = new Type(); types->push_back(type);
    Application crashed by line:
    types->push_back(type);
    I tried add try/catch block - but application crashed too.
    I don't know what wrong. This code is work fine on ios and in console application for mac.

    Workaround found:
    Need to launch adl as a line command (depends on your directory config, of course):
    /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adl -runtime /Library/Frameworks/ -extdir /Users/vandrito/Desktop/simpleAirNativeExtension/launch/extensions -profile extendedDesktop /Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/bin-debug/simpleAirN ativeExtensionTest-app.xml
    Pay attention to the library location: it is the one of the Air 3.1 install. Did not check the same trick with Flash Builder 4.6 Air install.
    Then use a fake web debugger to connect to the process (if compiled in debug mode). See here how to do (french):
    http://www.flex-tutorial.fr/2010/08/05/air-android-debug-sur-mobile-froyo-emulateur-avec-f lash-builder-4/
    Victor

  • 64bit AIR Native Extension for iOS

    Hello,
    I created a native extension to support ARM64 for iOS. The problem is I get the following error when packaging an ad-hoc build:
    "Error: libgameCenter.a are required to have universal iOS libraries. Please contact the ANE developer(s) to get the same."
    As I understand I need both armv7 and arm64 libraries. So I build for both of them using "xcodebuild" and then merge with "lipo -create" command.
    However I think there is a step I'm missing. Please advice. Thank you.
    AIR SDK: 16.0 beta
    Xcode: 6.1.1

    Well the change you need to do is inside your Xcode project, under Build Settings -> Architectures , make sure that you have selected "Standard Architectures (armv7, arm64)". One last thing to ensure that Valid Architectures should also contain arm64 entry along with other armv7 entries.

  • How to debug the jar files while developing the native extension for android

    ANyone???

    I'm having the same problem. I learned FB and Eclipse. I've read the tutorials, created an ane, and built it into a test app. I can debug my test app within FB 4.7 on my mobile device via USB. But there are bugs and they silently fail. Despite all my Log statements in my android java code, they won't output to the FB console. I'm blind, without even trace statements to help fix my ane. I've searched the internet and can't find anything. It must either be terribly obvious or arcane, because no one mentions it.
    Can anyone tell me how to get trace out of an ane?
    The Android reference claims debug and verbose priority are stripped out at runtime. I switched to Log.i() but still get nothing. I suppose for now I'll try throwing errors and see if I can report trace info that way if possible.
    Anyone perhaps have a JUnit test that will mimic AIR using the ane jar file as an extension? Perhaps it will be easier to go full native until the android side is debugged.
    Update Edit: Ok, now spending more time reading the Android developers website. I've found I can use logcat to get all kinds of useful system logs, including the log output of my embedded ane. I created a nice big command line window (180 char wide with a 500 deep buffer so I can scroll back through all the messages), then from the android platform tools directory I ran 'adb shell', then at the shell prompt $>logcat
    Links to info that helped me:
    http://developer.android.com/tools/debugging/index.html
    http://developer.android.com/tools/help/logcat.html

  • Need help with C++ native extension for Android

    Hello!
    I'm trying to build and launch sample native extension written with C++ on Android device.
    But thre
    I have:
    1) Code of native library:
    #include "FlashRuntimeExtensions.h"
    #include <stdint.h>
    #include <stdlib.h>
    #include <string.h>
    FREObject nativeFunction(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
              uint32_t length = 12;
              const uint8_t* value = (const uint8_t*)"Hello from C";
              FREObject retObject;
              int res = FRENewObjectFromUTF8(length, value, &retObject);
              if (res == FRE_OK) {
                        return retObject;
              } else {
                        return NULL;
    void ContextInitializer(void *extData, const uint8_t *ctxType, FREContext ctx,
                            uint32_t *numFunctionsToSet,
                            const FRENamedFunction **functionsToSet)
              FRENamedFunction* func = (FRENamedFunction*)malloc(sizeof(FRENamedFunction)*1);
              func[0].name = (const uint8_t*)"nativeFunction";
              func[0].functionData = NULL;
              func[0].function = &nativeFunction;
              *functionsToSet = func;
    void ContextFinalizer(FREContext ctx)
              return;
    void NativeCppExtensionInitializer(void** extDataToSet, FREContextInitializer* ctxInitializerToSet,
                                       FREContextFinalizer* ctxFinalizerToSet)
      extDataToSet = NULL;
      *ctxInitializerToSet = ContextInitializer;
      *ctxFinalizerToSet = ContextFinalizer;
    void NativeCppExtensionFinalizer(void* extData)
       return;
    2) ActionScript Library with Extension class:
    package com.adobe.hellojni
        import flash.external.ExtensionContext;
        public class HelloJniExtension
            private static var context:ExtensionContext;
            public static function init():void {
                if (!context) {
                    context = ExtensionContext.createExtensionContext("com.adobe.canewithjava", null);
            public static function stringFromJNI():String {
                if (context) {
                    return context.call("stringFromJNI") as String;
                return null;

    I do not have time to finish this topic.
    The full problem described in http://forums.adobe.com/thread/1217167

  • Integrate Adobe Air in app for Android

    Hello!Please, answer to one my question.
    Can I integrate Adobe Air in my app for Android? I want the user to not download Adobe Air from Google Play.
    Thanks.

    I've never used anything other than Flash Builder for mobile... So, yes, cf my original answer!
    When you select Export Release Build, it is on the first page of options. (I think ... This is from memory.) In any case, it is very visible. Just look at all the Android options when you package for release.
    G

Maybe you are looking for