Adobe AIR ANE Android NoClasseDefFoundError

I am developing an ane for using and enjoying the service games google play.
I made a test app natively and runs perfectly.
I generated one ane and made a falsh builder for test. By utilizing it happens the following error:
07-22 15:55:35.555: E/AndroidRuntime(9983): FATAL EXCEPTION: main
07-22 15:55:35.555: E/AndroidRuntime(9983): java.lang.NoClassDefFoundError: com.google.example.games.basegameutils.GameHelper
07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.google.example.games.basegameutils.BaseGameActivity.getGameHelper(BaseGameActivity.ja va:93)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.google.example.games.basegameutils.BaseGameActivity.onCreate(BaseGameActivity.java:10 3)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.google.example.games.tanc.MainActivity.onCreate(MainActivity.java:70)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.Activity.performCreate(Activity.java:5248)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.access$800(ActivityThread.java:139)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.os.Handler.dispatchMessage(Handler.java:102)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.os.Looper.loop(Looper.java:136)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.main(ActivityThread.java:5086)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at java.lang.reflect.Method.invokeNative(Native Method)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at java.lang.reflect.Method.invoke(Method.java:515)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
07-22 15:55:35.555: E/AndroidRuntime(9983):     at dalvik.system.NativeStart.main(Native Method)
I looked in the package and the class it appears. I found the following solution, but does not work.
NoClassDefFoundError for code in an Java library on Android - Stack Overflow
Go to "Properties" of the project.
Select "Java Build Path"
Select "Order and Export" Tab
You should see the selected project's "src" and "gen" paths and dependencies here.
The order how they listed were first "src" and then "gen" path
I switch them, so that "gen" folder is build before the "src"
Thank you

Hello, Alex
I'm just creating an ANE to use the new service from Google Play Service
My real problem is this:
I caught the ANE https://github.com/freshplanet/ANE-Google-Play-Game-Services. using google play service in froyo version. And use another ANE AdMob using the latest version of google play service.
By using and enjoying the two together in my project I have problem as there are conflicting library because I have two different versions of google play service, got the idea to update the ANE https://github.com/freshplanet/ANE-Google-Play- Game-Services. And put the dependencies google service only play one of them.
ANE that started my whole problem was updating.
I had this same error in native application (Android) and was simple to solve. I changed the "build path -> Order and Export" order of packets by placing the "gen" in primero and the "src" soon followed. But this change does not fit when I expoprto the jar to generate ANE.
I ended up finding another that NEDs use google play latest service
https://github.com/alextel69/google-play-game-services-ane.
I saw in the documentation that it is using AIR SDK 4.0 and I'm using the AIR 3.6 SDK. I'll update my version and find out if that resolves the problem.
Which version of AIR SDK are you using?
Once I have news we report here
Thanks for your help.
Have a great day

Similar Messages

  • Has anyone implemented Facebook SSO on Android using Adobe AIR ANE?

    Has Anyone implemented Facebook SSO on Android using Adobe AIR ANE?
    All help would be appreciated

    Hi,
    We have two ANE's for this, one is a basic single sign on and the other is a full FB API implementation.
    Single sign on:
    http://distriqt.com/product/air-native-extensions/facebook-utils
    Full API:
    http://distriqt.com/product/air-native-extensions/facebookapi
    Cheers

  • Partial wakelock in Adobe Air for Android

    I'm developing Adobe Air (for Android) application which is intended to be constantly on. App has event based operations. However, when phone enters to sleep mode app is able to perform only one or few events in a second which is not good enough. AIR's SystemIdleMode.KEEP_AWAKE -mode is not an alternative since it is too battery consuming.
    I'm looking for a solution where phone is allowed to go into sleep mode (screen is off) but still CPU performance is not drastically dropped. Not sure if Android's partial wakelock -mode does the job and is available via ANE?

    Well Im a bit puzzled now. I just created a quick AIR app using AIR13 for Android and did a DEACTIVATE test on the NativeApplication.nativeApplication property and used a TextField to "trace" out the frame rate when the app deactivated. The frame rate stayed at 24FPS the entire time. I turned the screen off, let it turn off, went to the home screen, and switched to other apps while the test app was still running. In all cases, the frame rate never dropped to 4FPS as indicated in Adobe's documentation. So it is either something a bug or feature of AIR13+ or it is how Android KitKat handles applications in the background. Im using an unlocked/stock Moto X running Android 4.4.3. The app also appends the getTimer() call to the end so you can see that it does change. Here is a link to the quick app I created: Dropbox - deactivate.apk
    I guess if you want to download that and test it out to see how it behaves on your device and let me know the results. What device and OS are you running?
    Below is the original message I started to type before I decided to create a quick app to test with. It may or may not still be relevant based on your results from my app test.
    If you are looking at just recording information, you could probably setup something on the Android/Java side that gets started when the app "sleeps" using the DEACTIVE event as a trigger to start the ANE side of things. Then when your app "wakes", you could use the ACTIVATE event to trigger a call to the ANE to pull all the data collected in the Java side back to AIR and stop the ANE data capture since the data capture would be back to being handled by AIR.

  • Adobe Air for Android 2.3.4

    I need Adobe Air for Android 2.3.4 Urgently.
    I recently made an app on Flash CS5.5 and it installed correctly.
    It said to install adobe air
    But then it said "This prodict is not comptable with this version of..."
    ANY help?

    Hi,
    Please download latest AIR3.4 SDK from http://www.adobe.com/devnet/air/air-sdk-download.html.
    Look for the runtime.apk present in the AIRSDK folder \runtimes\air\android\device.
    Install the AIR3.4 runtime on android device using command(Refer http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ff6.html) -
    adt -installRuntime -platform android -device deviceID -package path-to-runtime
    The above steps will install latest AIR runtime on Android device.
    Please note that - Applications created and published from Flash Professional CS6 for Android platforms will run on devices that run Google Android™ 2.2 operating system or higher.
    Thanks,
    Meenakshi
    Flash Pro Engg Team

  • Adobe AIR for Android update FAILS

    The most recent update for Adobe AIR for Android is failing on multiple users. Reading the reviews, I am having the same problem with running the update. Update runs, then stops and won't update? Why bother coming out with an update THAT WON'T LET YOU UPDATE AIR???????

    Hi,
    Could you please share the device used, OS version, kernel version and the last Adobe AIR installed in your device. Also, is this intermittent or it is failing everytime.
    Regards,
    Nimit

  • Adobe AIR for android, what is going on ?

    Hello!
    Few days ago i decided to try develop adobe air for android.
    Updated my phone to android 2.2 installed Android SDK , Adobe AIR SDK.
    Now there are few tutorials out there how to set up Air ap for android.
    They all state that u have to install Runtime_Device_Froyo_***********.apk
    You can supposidly download it from adobe pre-release, i cant get in there because they don`t let new members to register ?!?!?!
    I searched the entire google for 3h in every possible way to find Adobe Air setup for android, but its like it never existed. There are few disabled rapidshare and megadownload links, it is mentioned in a lot of places but you just cant find it anywhere.
    How can i setup Adobe AIR for my Android phone ?

    Can you please give directions where can i clear that cash.
    Anyway i don`t think its the case, because this is first time i hooked phone to internet, and first time i launched Android app store.
    Edit:
    I went to https://market.android.com and there is Adobe air app. But when i try to download it says that my device doesn't support it (Samsung Galaxy GT-I5500) By default it comes with android 2.1 and doesn't support Adobe air, but i upgraded firmware to 2.2.
    Maybe that is the reason it doesn't show me Adobe AIR in app store - based on my phone, not my Android version ?

  • Can you play/view swf files on adobe air for android?

    Hi, yes; I'm new here, as well as to Adobe Air, and I'm still trying to learn the ropes around here, and I apologize in advance if this has already been asked, or I have placed this question in the wrong forum.
    The thing is, I was wondering if it was possible to play my SWF files via adobe air for android; and if so, how? Thanks in advance either way.

    Can you please give directions where can i clear that cash.
    Anyway i don`t think its the case, because this is first time i hooked phone to internet, and first time i launched Android app store.
    Edit:
    I went to https://market.android.com and there is Adobe air app. But when i try to download it says that my device doesn't support it (Samsung Galaxy GT-I5500) By default it comes with android 2.1 and doesn't support Adobe air, but i upgraded firmware to 2.2.
    Maybe that is the reason it doesn't show me Adobe AIR in app store - based on my phone, not my Android version ?

  • Adobe Air for Android - caching key event that have "unusual" keycode

    I am developing an application for a platform. The OS of this platform is Android Gingerbread (2.3.4) The platform has some buttons with "unusual" key code: 141, 131 etc.
    Native application that created in ADT can catch and respond to these keyboard events While my Adobe AIR application (created in Flash professional) are Indifferent to them.
    I try both: stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,false,0,true); NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,fa lse,0,true);
    How can I "catch" this event? Maybe a way to add constant to the keyboard class?
    Thanks

    If you are deploying for iPhone it is on the 'general' settings(First setting page opened).
    Just noticed you are making android app but i still added iphone deployment settings for further future
    But if you are using it for flash/android you have to add code into your fla descriptor with XML language(dont worry it is 1 line of code)
    Watch the video on this page about GPU rendering:
    http://blogs.adobe.com/cantrell/archives/2010/10/gpu-rendering-in-adobe-air-for-android.ht ml
    Your app shouldn't lag after these steps but if you have a project that gets bigger and has lots of code it MIGHT lag so that is when external files should help.

  • The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5

    The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5
    This is happening for most of the pupils and staff at our school and they are unable to complete their work.
    This also happens on a fresh copy of windows and CS5.5 without any updates and also with all latest updates.
    I have tried it on 32-bit and 64-bit CS5, Windows, Air and Java with the same error every time.
    There are a small minority of users where this works fine for them with no issue.
    I have tried re-setting user profiles.
    I have tried a local admin and domain admin account with the same issue
    I have noticed however that if the file is moved to the shared area it will compile. If it is on their documents area it will not compile. The users have full control in both locations. This is fine for staff but we are unable to give full control or modify access to the shared area for the pupil's
    I have been through the online support section and it directed me to phone Adobe Customer care who informed me that all support has been discontinued for CS5, CS5.5 and CS6 and they will only support creative cloud.
    Any ideas what to try next? There is no other information about this error and I cannot work out what is causing it.

    I have tried and  able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
    -Pranali

  • Increase brightness using adobe air for android

    Is there any fringe api to increase the screen brightness in adobe air for android?
    Im making a morse code app and it could really use a pump in brightness while the app is in use.
    If its not yet implemented, then this would deffinately make a nice addition.

    i have an app called screenLight on my droidx. it really pumps up the screen brightness and makes it like a flashlight (kinda)... so i am pretty sure it is possible. i dont know how but you might try to see if you can contact one of their develepors. another option for you would be to possibly use the cameras flash. it is way brighter than the screen will ever be (though much smaller)
    good idea for an app!

  • Integrating Flurry in Adobe Air for Android

    Hi,
    I am having a hard time integrating Flurry into an android application built with Adobe Air.
    Setting: Flash Builder 4.6 (sdk 4.6) and Adobe Air 3.1
    I have successfully created the bridge between Air and Java (e.g. I can open a native notification).
    The flurry doc requires to call the method
    FlurryAgent.onStartSession(this, "FLURRY_ID");
    in the onStart() of an activity, where 'this' is an instance of the Activity class.
    Following the tutorial on building ane I have seen that when you extend a FREEFunction and you override
    the call method, the context has a "getActivity()", so I hav tried the following
      @Override
              public FREObject call(FREContext context, FREObject[] args) {
        FlurryAgent.onStartSession(context.getActivity(), "FLURRY_ID");
    But with no success.
    I even tried to build an empty activity and pass it to onStartSession like this:
    Activity a = new Activity();
    FlurryAgent.onStartSession(a, "FLURRY_ID");
    Again, no success.
    I even tried "null", but no success.
    Did anybody face a similar problem here?
    Any suggestion/idea?
    ps:
    I have tried contacting flurry, but I had no replies.
    I have tried to use the id in another,  built in the gold old way, android application and it works.

    Well Im a bit puzzled now. I just created a quick AIR app using AIR13 for Android and did a DEACTIVATE test on the NativeApplication.nativeApplication property and used a TextField to "trace" out the frame rate when the app deactivated. The frame rate stayed at 24FPS the entire time. I turned the screen off, let it turn off, went to the home screen, and switched to other apps while the test app was still running. In all cases, the frame rate never dropped to 4FPS as indicated in Adobe's documentation. So it is either something a bug or feature of AIR13+ or it is how Android KitKat handles applications in the background. Im using an unlocked/stock Moto X running Android 4.4.3. The app also appends the getTimer() call to the end so you can see that it does change. Here is a link to the quick app I created: Dropbox - deactivate.apk
    I guess if you want to download that and test it out to see how it behaves on your device and let me know the results. What device and OS are you running?
    Below is the original message I started to type before I decided to create a quick app to test with. It may or may not still be relevant based on your results from my app test.
    If you are looking at just recording information, you could probably setup something on the Android/Java side that gets started when the app "sleeps" using the DEACTIVE event as a trigger to start the ANE side of things. Then when your app "wakes", you could use the ACTIVATE event to trigger a call to the ANE to pull all the data collected in the Java side back to AIR and stop the ANE data capture since the data capture would be back to being handled by AIR.

  • Adobe air mobile - Android - Print

    Hello,
    I'm looking for a solution to print from Adobe air on mobile - Android, i find ANE for IOS with airprint, but nothing for Android,
    If someone know about a solution, free or not...
    Thank you!

    DOES THIS MEAN YOU ALREADY ABLE TO USE A CUSTOM USER AGENT FOR AIR PROJECT ??
    CAN YOU EXPLAIN HOW TO ADD CUSTOM USER AGENT ?

  • Cannot install Adobe Air on Android phone

    I cannot install Adobe AIR on my Android phone (v. 2.2.1)
    I search for "Adobe AIR" in the market and the app is not found. 
    So, I downloaded an app that was build to run in AIR and when I launch it, I get an alert "This application requires Adobe AIR.  Install AIR now?"  I click Install and I get an alert "The requested item could not be found."
    Then I installed the Amazon store and purchased (for free) Adobe Air, but it too fails on install. 
    I can't believe this is an issue w/ my phone.
    Anyone know what the issue could be?
    Thanks!

    Hi,
    I found requirements for Flash and Air on Android from following Sites:
    http://www.adobe.com/products/air/systemreqs/#mobile
    Android devices
    VGA: Dedicated Cortex A8 (ARMv7) 550MHz App Processor with Neon for A8 only; Hardware Vector FPU
    WVGA: Dedicated Cortex A8 (ARMv7) 800MHz App Processor; Hardware Vector FPU
    Google Android™ 2.2 or later
    256MB of RAM
    http://www.adobe.com/products/flashplayer/systemreqs/
    VGA
    WVGA
    WSVGA (1024x600)
    WXGA (1280x800)
    Hardware requirements
    Dedicated Cortex A8 (ARMv7) 550MHz App Processor with Neon for A8 only
    Hardware Vector FPU
    Dedicated Cortex A8 (ARMv7) 800MHz App Processor
    Hardware Vector FPU
    Dedicated Cortex A8 1000Mhz App Processor
    Hardware Vector FPU
    Dual-Core Cortex A8 1000Mhz App Processor
    Hardware Vector FPU
    Operating system
    Android™ 2.2*
    If I am getting it correctly, both requires same ARM version, and Hardware Vector FPU.
    But I have found many devices, where Adobe Flash is installed and running. (If market does not show Adobe Flash, device manufacturer provides flash apk which works)
    But can not install Adobe Air. Market does not show Adobe Air.
    Is there any way to sort this out?
    I get feeling that as Flash is more popular software, people have got patched version for the same. But for Air, it does not exist.
    Thanks

  • How to install adobe air in android emulator

    i am implementing one application related to android in adobe flex, .apk is generated and now while installing the .apk file in emulator, emulator is showing one pop up to install adobe air, while again installing on adobe air , it is showing that no mobile device is connected to your system. so how can i install adobe air in emulator to test the application made in adobe flex?
    thanks
    babu

    Are you trying to launch via Flash Builder?

  • Adobe AIR for Android 2.2(Samsung Galaxy Fit)

    Hi all,
         I have Samsung Galaxy Fit with Android 2.2. I want to deploy applications coded in Flex on my phone.
    Also Adobe AIR is supported by devices with Android OS 2.1 and above, but in Android market it shows that my phone is not compatible with the latest version of AIR.
    So does anyone knows which lower version of AIR will be supported by Galaxy Fit.
    Thanks in advance
    Ronak Shah

    Hi,
    Please download latest AIR3.4 SDK from http://www.adobe.com/devnet/air/air-sdk-download.html.
    Look for the runtime.apk present in the AIRSDK folder \runtimes\air\android\device.
    Install the AIR3.4 runtime on android device using command(Refer http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ff6.html) -
    adt -installRuntime -platform android -device deviceID -package path-to-runtime
    The above steps will install latest AIR runtime on Android device.
    Please note that - Applications created and published from Flash Professional CS6 for Android platforms will run on devices that run Google Android™ 2.2 operating system or higher.
    Thanks,
    Meenakshi
    Flash Pro Engg Team

Maybe you are looking for

  • Moving photos to an external drive

    So as to move my photos to a WD My Book for Mac, do I drag just the photos, or the Adobe Photo Elements program as well to the external drive? Then I delete from the computer, correct?

  • 9i install error  "error writting to C:|windows\system32\mfcan32.dll"

    I'm trying to install Oracle on a "brand new" computer running WIN 2003 XP Home, so I'll be ready for the fall semester. I was installing Oracle9i DS Release 2 (9.0.2.1) and at the "Install" screen this Oracle message. ERROR writting to C:|windows\sy

  • Gnome 3.2 Locks immediately after login

    I have Arch & Gnome 3.2 installed on my Thinkpad W520. On the first login after boot(Using GDM) , the screen dims and locks as if the screensaver had been activated, and I have to type in my password to unlock it. Does anyone know how to fix this, or

  • LM4 Previous Export Folders Grayed Out

    When Exporting images in LM4 (4.0), the previous list of export folders is grayed out  and none can be selected.  You have to choose the destination folder via the Choose button.  On the next Export the previously selected folder appears in the list

  • Optimum Screen Resolution for Slides

    I need to create a few slides which will be displayed full-screen. Since there's no way to know the resolution of the monitors of the many participants, how do I choose the resolution of my slides? Are they downsampled in any way by the Adobe server