ClassNotFound Extension Native

Hello

I created a native extension of the air quality with a simple function that starts an activity within the DONKEY, "DumbActivity." It worked.

However, after DumbActivity extend YouTubeFailureRecoveryActivity to start using the 3.0 API from YouTube, I got a ClassNotFoundException on DumbActivity when I run the DONKEY.

Note that when I run the code in a native android app, it works fine, and I can use YouTube capabilities. Also checked the DumbActivity class is included in the jar.

Is this some sort of conflict of library or something?

Hello

Have you created a platform-options - android.xml for android include external jar (API from Youtube), it should be like:

http://ns.Adobe.com/air/extension/4.0">
  
   youtubeapi.jar
  

  
  

You must specify the name of the jar Youtube within the "PackageDependency" tag file name

And, the command adt to package the DONKEY should be like:

ADT-package [YOUR NORMAL OPTIONS] - platform Android-ARM platformoptions - platform-options - android.xml - C-Android-ARM.

Please check.

Thank you

Adobe AIR Team

Tags: Adobe AIR

Similar Questions

  • Flurry Agent crashing App - Extension Native Android

    I created an Extension native Android for my game. I need to be able to access a 3rd party sdk (for which I have the source files) which was written in java.

    The SDK uses Flurry Analytics for the recording of events and it is integrated into the sdk source code.

    I managed to get a donkey work that can communicate back and forth between my game and java sdk, however, when trials of sdk to initialize it reports class, the method of "initialization" app running ends prematurely. It does not crash the application and without exception is reported in the code, but because the method ends prematurely, all the initialization code that follows doesn't run, so blow the full sdk.

    In the Android Debug Monitor LogCat, I get the following result when the class declaration is created:

    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onEndSession, referenced from method com.bigfishgames.bfglib.bfgReporting.destroy is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1973: MBCA/burst/android/FlurryAgent; onEndSession (Landroid/content/context ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0 x 0011
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0014-0016 in mCol, bigfishgames, bfglib, bfgReporting; destroy (V)
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onStartSession, referenced from method com.bigfishgames.bfglib.bfgReporting.sharedInstance is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1975: MBCA/burst/android/FlurryAgent; onStartSession (Landroid/content/context; Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0 x 0067
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onError, referenced from method com.bigfishgames.bfglib.bfgReporting._logError is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1974: MBCA/burst/android/FlurryAgent; onError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0004
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0007-0007 by mCol, bigfishgames, bfglib, bfgReporting; _logError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/Exception ;) V
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.onError, referenced from method com.bigfishgames.bfglib.bfgReporting._logError is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1974: MBCA/burst/android/FlurryAgent; onError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0000
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0003-0003 by mCol, bigfishgames, bfglib, bfgReporting; _logError (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String ;) V
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.logEvent, referenced from method com.bigfishgames.bfglib.bfgReporting.logEvent is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1971: MBCA/burst/android/FlurryAgent; logEvent (Ljava/lang/String ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0000
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0003-0003 by mCol, bigfishgames, bfglib, bfgReporting;
    . logEvent (Ljava/lang/String ;) V
    12-28 15:05:26.488: I/dalvikvm (1776): method com.flurry.android.FlurryAgent.logEvent, referenced from method com.bigfishgames.bfglib.bfgReporting.logEvent is not found
    12-28 15:05:26.488: W/dalvikvm (1776): VFY: unable to solve the static method 1972: MBCA/burst/android/FlurryAgent; logEvent (Ljava/lang/String; Ljava/util/Map ;) V
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: replacement opcode 0 x 71 to 0x0000
    12-28 15:05:26.488: D/dalvikvm (1776): VFY: dead code 0 x 0003-0003 by mCol, bigfishgames, bfglib, bfgReporting; logEvent (Ljava/lang/String; Ljava/util/Map ;) V

    Then when the source sdk runs FlurryAgent.onStartSession, the java code stops running and kicking all the way back the action script code.

    I did some reading, and the only thing I found similar was as follows:

    Check the properties of the project Java build path, then the order and export tab make sure that the FlurryAgent.jar is selected.

    In my project, I have the FlurryAgent.jar added as an external jar in libraries and in order and export, it is at the top of the list, just below the FlashRuntimeExtension.jar and it is checked.

    To create the jar of my donkey, I right click on the project, by selecting export, I then select the Java jar.

    Resources and export generated class files is checked

    compress the contents of the jar file is checked

    Add directory entries is checked

    and all the files and folders in my project are checked.

    I opened the final .jar file in winrar and the file FlurryAgent.jar libs folder as well as the FlashRuntimeExtensions.jar

    Anyone know what I'm doing wrong, or not to the apk file (like an addiction, I don't know)?

    I use Eclipse for Mobile developers Version: Juno Service Release 1 Build id: 20121004-1855 as my Java IDE to generate the jar native extension on Windows 7

    I build the DONKEY with Air 3.5.0.840

    Using Flash Builder 4.6 to build the apk

    Tests on a Sony Ericsson Xpeira phone Android 2.3.4 running

    You must extract the external .class to the JAR files and then insert them into your target donkeys JAR.

    In the Java JDK BIN directory, you will find "jar.exe.

    You must run:

    jar - xf external.jar (or what is called the pot burst)

    This will extract the .class files in a file format, with the highest level (probably ' com') directory in the same directory as the external.jar.

    Now, you need to run:

    jar - uf yourJar.jar com

    This will include all classes, recursively, in "yourJar.jar" so that they can be used within your extension.

  • Sensor use the NDK 2.0 in a (ANE) Extension Native AIR API

    Hello

    I tried to access the gyroscope for a Native Extension of AIR, help NDK 2.0 Beta 3, Flash Builder 4.6 and Tablet OS 2.0.0.7111

    I managed to make a C simple library that I can call the air (so that I don't know that all the settings are correct), but as soon as I add a reference to the sensor.h library loads is no longer. I get the following error in the AIR:

    ArgumentError: Error #3500: the context of the extension doesn't have a method with the name of init.
    at flash.external::ExtensionContext/_call()
    at flash.external::ExtensionContext/call()
    to com.adobe.nativeExtensions::Gyroscope$/get isSupported() [/ Users/airqe/Users/sbhave/Gyroscope/AS/src/com/adobe/nativeExtensions/Gyroscope.as:106]

    ...

    My assumption is that I'm using a library which contains functions of sensor is not found, so it cannot load my library. But I can perfectly well be another problem.

    Someone has managed to make this work? Any help would be welcome.

    Thank you!

    I just added bps in libraries (-l) the GCC linker settings and it works.

    Thanks for the explanation!

  • Blackberry10 Webworks / Extension Native Bug (?)

    Someone at - he saw Simulator messages like:

    Need error can not find

    /usr/bib/WebPlatform/plugins/mjnext/BP.so

    Library not found

    When starting an application of webworks html5 with a native extension.

    Although I see this error,

    (1) I know that my archives of deployment (file * .bar) take my shared library because I can see it in the archives under

    Expected, as well as an auth.txt file /native/plugins/jnext/BP.so

    (2) I know that the deployment of the process in many because I can copy the library $SDK_DIR/Framework/ext/bbm.platform/simulator/bbm.so to replace my library bp.so (also in a subdirectory of the framework/ext), do a regeneration and deploy. Then start my application, I get a message that bp. Memory cannot be instantiated. Which is fine, telling me that my index.js file loads the false bp.so (good) but can't call the class of memory (planned, as there was no in bbm.so before the copy).

    (3) I know that my C++ code is very well I have an exact copy of the code in the extension of the C++ TEMPLATE (memory) example I downloaded from github.

    (4) I believe that the shared library is very good because it built without problems in the IDE, downloaded from the section C++ tools to developers. (I'm using the version of Linux and construction with the default device-debug settings).

    But, then, there must be something wrong with the library because the system cannot load from the/native/plugins/jnext directory in the application folder. So at the moment I suspect that there is an integration issue somewhere between the different tools in question, the IDE, SDK, the Simulator.

    Has anyone else had luck with native extensions for BB10 html5 webworks apps?

    I had a little more time to play with this morning and have been able to track down what happens then...

    For other developers who run in it. This happens because profiles of device-Debug or Release device in the IDE to produce an ELF 32-bit ARM shared libraries, while produce profiles Simulator-Debug or Release - Simulator ELF 32-bit Intel 80368 shared libraries. Deponding on the target is important so get the suitable library.

    For RIM, you have a somewhat integrated tool chain and I understand the limits you are underneath. On the other hand, I had to spend time reverse engineering that toolchain to understand how it works. This reverse engineering work is not something that you'll usually want to push downstream. In addition, this thread is the one but not the first question of usability I meet with your tools. As a professional developer, waste of time on usability issues is very difficult to charge (-c' IE: do not cost effective to develop for) is not pleasant (-c' IE: it rots the brain). So, knowing that I would probably not do the work in the future development of BB-related...

    In my view, is a fair estimate of RIM where in terms of experience of development - not comparable to those of your competitors. I hope this can change, because it is really in the best interest of all that the RIM is a successful part of the mobile market.

  • Bluetooth kit extension Native

    Hello

    I'm doing a native extension for Webworks on BB10 to use Bluetooth.

    I use btspp API. When I run the app I got a message error "error need cannot find... myLib.so is not found.

    If I do not use the Bluetooth API I do not have the error and my extension returns something else. So I think it's because the Bluetooth library is not packaged with the application.

    In the app, I just added my own library (myLib.so).

    I have not found anything on adding a feature on Bluetooth technology in the config.xml file, or no authorization in rimermissions.

    Should I add a feature or permission? Or add the Bluetooth library and how?

    JEM

    You need to do is a link to the lib BT

    Assuming that the standard libs bb just go to the library and use the wizard

    If a connection of external systems, it is a diff method

  • In - App purchase Extension Native - how can I check if the user purchased in-app already?

    Hello!

    I have an application with In - app purchase. I use ProductStore - native extension of Adobe to connect to iTunes (summary com.adobe.ane.productStore). I can make the purchase at the ENA, but I have not found a way to check if the application was already purchased: I need for the case when the user wants to install the application to an additional device, or if the user has delete the app and install it again.

    And if there is no way, maybe someone knows another Native extension that can provide the corresponding functionality.

    Thank you in advance,

    Olga

    One you use has a restore function: http://www.adobe.com/devnet-docs/gamingsdk/anedocs/com/adobe/ane/productStore/ProductStore .html #restoreTransactions)

  • Call the FREDispatchStatusEventAsync of my extension native IOS isn't going anywhere. What should I do?

    I'm stuck at this point. We have developed a native extension so that our product can run on the desktop and android, but on IOS... I can't get all the data to the side flex.

    The function I use is:

    void SendMessageToFlex (const char *, const char * msg) {}

    Res FREResult;

    RES = FREDispatchStatusEventAsync (_ctx, (const uint8_t *) type, (const uint8_t *) msg);

    If (res == FRE_INVALID_ARGUMENT) {}

    NSLog (@"error: FREDispatchStatusEventAsync");

    } else if (res == FRE_OK) {}

    NSLog (@"OK: FREDispatchStatusEventAsync");

    } else {}

    NSLog (@"?: FREDispatchStatusEventAsync");

    }

    {

    also... the project is here:

    http://www.4shared.com/zip/y6MHvPh9/UDPSocketiOSLibrary.html?refurl=d1url

    The variable you pass as an argument to the parameter level is a NSString.

    [UDPSocketAdapter.m] line 221 sends 'msg' (which is a NSString) as the second argument to 'sendFunc' which is incorrect. It should be a ' const char *'.

    Please send "[msg UTF8String]" as the second argument to sendFunc instead.

  • Flash Builder 4.6 Mobile project using Blazeds & Extension Native

    Hello

    I'm building a Flex Mobile in FB project, which uses BlazeDS to access data through a project of spring and also a DONKEY file to access the contacts of the device.  I want to debug the application on a device connected with a USB cable, so to put my root files and output in the settings of the server using a UNC name, so it can be found from my device via my wifi network. I also added the native extension via the Build Path and package labels.  When I have an emulator debug office, things are OK and the extension correctly tells me that he is not taken in charge on the emulator. However, if for debugging on the device, FB throws an exception during the launch, complaining of a java null pointer exception.  The journal of the eclipse, in part, looks like this:

    com.adobe.flexbuilder.project.AbstractXMLModel$ FileReadException: org.eclipse.core.internal.resources.ResourceException: resource ' / NewOne-debug/NewOne - app.xml "does not exist.

    to com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel. < init >(ApplicationXMLM odel.java:102)

    at com.adobe.flexbuilder.project.air.AppXMLCreator.init(AppXMLCreator.java:91)

    to com.adobe.flexbuilder.project.air.AppXMLCreator. < init > (AppXMLCreator.java:80)

    to com.adobe.flexbuilder.project.air.AppXMLCreator. < init > (AppXMLCreator.java:73)

    at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.getAppXMLCreator (AppXMLFileANEExtensionHandler.java:153)

    at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.retainExtensionI ds(AppXMLFileANEExtensionHandler.java:315)

    at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging (ANECont roller.java:371)

    at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging (ANECont roller.java:338)

    at com.adobe.flexbuilder.project.ui.utils.ANE.AbstractANEPackageHandler.modifyAppXMLforPacka ging(AbstractANEPackageHandler.java:91)

    at com.adobe.flexide.launching.multiplatform.launchhandlers.AbstractMultiPlatformLaunchHandl er.applyNativeExtensionDetails(AbstractMultiPlatformLaunchHandler.java:164)

    at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage (ADBLaunchHan dler.java:424)

    at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch (ADBLaunchHandle r.java:250)

    at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch (MultiPlatfor mLaunchDelegate.java:191)

    at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch (AbstractFlexLaunchDelegate. java: 244)

    at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch (AbstractFlexLaunchDelegate. java: 134)

    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)

    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)

    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)

    to org.eclipse.debug.internal.ui.DebugUIPlugin$ 8.run(DebugUIPlugin.java:1132)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Caused by: org.eclipse.core.internal.resources.ResourceException: resource ' / NewOne-debug/NewOne - app.xml "does not exist.

    at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)

    at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)

    at org.eclipse.core.internal.resources.File.getContents(File.java:287)

    at org.eclipse.core.internal.resources.File.getContents(File.java:278)

    to com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel. < init >(ApplicationXMLM odel.java:100)

    ... 19 more

    I guess the problem is that when the application attempts to run on my device, the extension is not find application descriptor file.  Is there anything else I need to do?

    I appreciate all help.

    Jay

    Here is the solution in case anyone else runs into this problem.  Flash Builder is to create the deployment at the launch, it converts the path mapped to a local path mutilated for donkey find the descriptor to a relative path, which can not be found and get the null pointer.  Making the path to output folder actually local to the computer, as opposed to the default which creates FB, solves the error and still lets blazeds access from the device.

  • If you use more than one Extension Native on Flash develop

    Hi, I got two DONKEY, one for and an AdMob and a Vibration (the example of Adobe) if I have both, activate one of them stops working (Vibration) if they are tested separately work correctly. The debugger does not match in native code. I tried to add the SWC in several ways: (including external selling library and library) but I can not make applications run more than a DONKEY... What can I do?

    Hello:

    Which is the platform you are targeted?

    the name of the methods of the initializer and finalizer (mentioned in extension.xml) ENA must be different for all native extensions that an application uses.

    You can check the values by extracting extension.xml of. DONKEY (you can rename it to .zip and unzip)

    Library must always be external (mention the CFC as external library)

  • BB10 WW Extension Native events

    I wrote an extension of virtual keyboard that works well as it goes.

    I wanted to add virtual keyboard in the extension events, so when the system does something with the VK I know about it and also to follow the height of the VK correctly, then virtualkeyboard_get_height is useless

    BB10-WebWorks-frame includes only a single API with a whole and loop which is BBM (what is exaggerated wide as an example for my little simple event)

    Anyway - I cobbled together something that should just about the work (I think), and it kills my extension

    Although the hooks to start and stop the event handler are commented he dies (it goes up to load the extension then say it can't find it - probably due to it crashing)

    I need really just an example of loop simple event

    If you want to watch the event broken stuff and point out my stupid mistake don't hesitate

    It's all on https://github.com/peardox/bb10webworks-ext/tree/master/VKeyboard

    I have two extensions more that I want to write after I get a job and they both also require the event loops

    I applied for a GitHub access then when I get these sussed they will end up in the API community

    Hello

    Your c ++ is not complete - your (most likely) crashing due to a lack of work; a problem with the writing of an extension, it's that the missing functions are not identified (it's a library! some other library could have this code!)

    You have not defined:

    webworks::TemplateNDK::SendEndEvent();
    

    but you called it.

    You must add the name of the class here have implemented each feature;

    static void SendEndEvent(){
        virtualkeyboard_request_events(0);
    }
    

    I highly recommend you try to compile your extension as/in a project of waterfalls - missing functions are identified immediately at the binding stage – and you get richer debugging...

    Can't be that Cascades even if can be any stand alone executable C++, made with the tools of your choice...

    I hope this helps!

  • Example of command line for native playbook Adobe extension build?

    Does anyone have a sample of a command line instruction to compile a native extension Adobe? The equivalent of export as Air Extension Native IDE QNX Playbook?

    Hey,.

    If you look at the history of this tutorial, we have here: http://supportforums.blackberry.com/t5/tkb/articlehistorypage/message-revision/1376479%3A10, the first versions used NDK 1.0 and 4.5 FB which had no export function, for the most part, the instructions to use the command line tools.

    Read the version 5 of November 8, 2011, which is the most recent by using older versions. If it is not enough, let us know.

    See you soon

  • problem with the SWF version when you use a native extension

    Hello

    I am trying to create an android app where I use a donkey BT (Extension Native Android).  After packaging wih ADT, I get the following message:

    Included native extension "com.myflashlab.air.extensions.bluetooth" includes a

    SWF 25 version that is greater than the root SWF version of this

    application: 17


    Anyone who knows how to change the swf to a swf file version?

    Another article, the CS6-oriented:

    https://chrisgriffith.WordPress.com/2012/07/20/updating-Flash-Professional-CS6-to-support-11-4 /.

    The procedure should work for later versions, simply to find the files to Flash Player 14 or later.

  • Problems of creating a Native Extension, referring to a static library

    Hello

    I am trying to create my own Extension Native for iOs using another static library.

    My problem occurs when I try to pack my application with ADT: after a lot of "ld WARNING: unexpected srelocation type 9", I get a final error: "ld: inch bl/blx out of reach (max-4468380 is + / 4 M).

    This may be caused by the fact that the static library, I use needs CCG affecting "compile for thumb" turns off. I did this in XCode to get my file has to generate my .ane, but how could I tell ADT to take into account?

    Thank you very much for your help!

    You are compiling for ARMv6 and ARMv7?

    With armv7, you don't need to turn off the "compile for thumb" anyway.

    Also, I assume you are using a greater than 4.3 iOS version to compile your native library. In this case, using platformsdk - adt switch, while the packaging of your app could solve just of your question. (You will see some warnings 4-byte alignment ld, but it's ok)

    Neha-

  • networkinfo native extensions crashes

    So I'll try some kind of persistent ID in my iOS game, I'm working on the best scores of the user to link...

    I would use UUID but A) there doesn't seem to be an extension for it, and B) it seems that Apple is to denigrate the opportunity to get the UUID

    Therefore, the only option I could come up with what I read online about using the mac address of one of the items of hardware in the user device.

    here goes networkinfo... who apparently is not taken in charge of iOS (but it is in android... go figure adobe) so I see there is a native extension for it on the adobe Web site

    I include the native of networkinfo extension, just as I have included the other 5 or 6 native extensions that I use and copy and paste their api and get the following error thrown (seen in remote debugging)

    More precisely:

    ArgumentError: Error #3500: the context of the extension doesn't have a method with the name getInterfaces.

    When I call findInterfaces()

    any ideas?

    I found my problem. The problem was that it was in conflict with some other extension ExtInitializer (specifically Air Inline Email Extension Native iOS). I went to my way to build in FB 4.6 and I saw that under my extension, there's a red alert, explaining that he was in conflict with another native extension.

    I just disabled the extension and everything worked properly.

  • Check out native BB Web App and Javascript

    Hey everybody,

    I'm working on Blackberry to develop a web application and I had to transfer some of the tasks to a native hook.

    Now expand the native javascript hook to use seems fine, the biggest problem Im having is that I can't connect to a some paper (i.e. within the web application can I print to a kind of diary? From my native code I cant seem to System.out.print to the console as Eclipse sees the project as a web app and seems just to set the console to another point of view.

    Can anyone give me any suggestions or correct me on how to get some kind of output?

    See you soon,.

    Matt

    I created a JavaScript Extension (native code) that writes to the BlackBerry event log.  I also use it as a feature in my Widget application and override console.log (and do invoke the native Logger).

    The good thing about the event log, is that it is too on the device.  In the current state of debugging by using the available tools, this feature helped me tremendously.

    Use the Source.  Or better, use phonegap and get you it for free.

    The showeventlog application is the best way to view the log of events on the device/Simulator.

Maybe you are looking for