Adobe AIR ANE Android NoClasseDefFoundError

I develop a ANE for use and take advantage of the service games Google play.
I did a test app in native mode and runs perfectly.
I generated un ANE and make a Falsh Builder for test. By using this it happens the following error:


07-22 15:55:35.555: E/AndroidRuntime (9983): FATAL error: 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): to com.google.example.games.basegameutils.BaseGameActivity.getGameHelper (BaseGameActivity.ja's: 93)

07-22 15:55:35.555: E/AndroidRuntime (9983): to 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): to android.app.ActivityThread.access$ 800 (ActivityThread.java:139)

07-22 15:55:35.555: E/AndroidRuntime (9983): to 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): to 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 at in the package and class it is displayed. I found the depending on the solution, but does not work.
NoClassDefFoundError for code in a library of Java on Android - Stack Overflow
"

  1. Go to 'Properties' of the project.
  2. Select "Java Build Path".
  3. Select 'order and export' tab
  4. You should see 'src' and 'gen' paths and dependencies of the selected project here.
  5. Order how they were first 'src', then 'gen' path
  6. I have change, then this folder 'gen' is built before the 'src '.

"

Thank you

Hi guys,.

I just got the same questions the other day, and I have to run now. I think that this has nothing to do with the Proguard, downgrade your lib google-play services.

I upgraded my google-game-services for the last days of version before, and I found that if I chose the jdk 1.7 to write my own ANE sources, my own java package, nor the services google-play-included in the final APK.

But after that I've chosen the jdk 1.6 to compile my source and rebuilt DONKEY, my own java package included in the final APK.  So I think that the AIR adt does not support classes that generated by jdk 1.7. Then I downloaded the 4.4.52 google services-play-lib version and rebuilt my DONKEY, everything works fine.

Here is a link to the previous version of google-game-services lib: AdviewSDK_Android/google-game - services.jar to the master to adview/AdviewSDK_Android · GitHub .

Hope it would help.

Tags: Adobe AIR

Similar Questions

  • Impossible to compile Adobe AIR for Android TV

    Hello

    We try to compile the AIR with the flags are:

    < android >

    < manifestAdditions > <! [CDATA]

    < manifest android: installLocation = "auto" >

    ...

    < / manifesto >

    []] > < / manifestAdditions >

    < supportsAndroidTV > true < / supportsAndroidTV >

    < banner > "path of the image of the banner (320 x 180 px, .png file)" < / banner >

    < / android >

    and get:

    C:\MediaSignageDepot\Solution\5.0\Products\SignagePlayer\Android\SignagePlayerAn

    droidApp - app.xml (206): error 103: application.android.supportsAndroidTV is a UN

    element/attribute EXPECTED

    Anyone had success compile those flags with Adobe AIR for Android TV last?

    We're uisng the flag of swf-version 31 and namespace 20.0 to try to access this feature.

    We use the AIR 20

    Kind regards

    -Sean http://DigitalSignage.com

    ____________________________________________

    MediaSignage.com, digital signage FREE for everyone!

    5776-D Lindero Cyn Rd #182

    Westlake Village, CA 91362

    Phone: 1.877.DIG. SIGN (1-877-344-7446)

    Fax: 1.818.337.0442

    Live support: http://chat.digitalsignage.com

    I see that beta support has been added for Android TV in one of the beta versions of AIR 20. Read this discussion:

    AIR 20.0.0.230 iOS install questions and support Android TV has stopped working

    It seems that you would have used equip 185 and not the final version. Or you can try an AIR 21, or 22 AIR beta version.

  • Partial Wakelock in Adobe Air for Android

    I develop Adobe Air (for Android) application that is designed to be constantly turned on. App has operations based event. However, when the phone goes to sleep mode app is able to perform only one or a few events in a second which is not good enough. AIR SystemIdleMode.KEEP_AWAKE - mode is not an alternative because it is too consuming battery.

    I am looking for a solution when the phone is allowed to enter the mode 'sleep' (screen is off), but still the CPU performance are not radically fallen. Not sure Android part wakelock-mode does the job and is available through DONKEY?

    What type of event you are missing to be able to manipulate during sleep? According to the documentation from Adobe AIR decreases the rate of 4 frames per second when it is moved to the background or becomes inactive. Im guessing that the screen, disabling account in this respect and that is probably a reason as to why you have found only a few events a second, but I can't say for sure without knowing what type of event you use. In regards Android PowerManager WAKE_LOCK function, Google documentation says that you should not use this API unless you absolutely, and if you have to use it, you use it and do with it as soon as possible as long as this hurts API independence (they have same "BOLD" the part about the battery life). What you try to do that requires that the app is always on? More details can help myself or others provide other options to accomplish what you are trying to do. If you must use the PowerManager, you should be able to create a DONKEY to turn on and off the WAKE_LOCK mode, but could only help the side Android/Java things and you might need to move your event handling during the side of things because Java application of AIR will be always abandoned at 4 frames per second when the screen turns off.

    Adobe AIR * Mobile application design considerations

    PowerManager | Android developers

  • Adobe Air on android 4.1.0 and more

    No android 4.1.0 and above tablets support adobe air? Are there any known issues or bugs?

    There should not be problems with Adobe AIR on Android 4.1

    If you have any problems, please post on the forum of the AIR.

  • Many problems with the runtime Adobe AIR for Android

    I created an application on Adobe AIR for Android platform, which requires for AIR. The app is very popular in the Android Market, but many users complain of problems with the installation of the Adobe Air runtime.

    For example, these users phones: LG LGE-P698, LG Pecan, HTC Wildfire. But judging by the fact that users have access to the installation of the Air, their phones are compatible with it.

    Tell me how to solve the problem?

    In addition, I have a few questions:

    1. Decides that the problem of demand for export with built-in AIR runtime?

    2. I have create my applications using ADT. In this case how do I seal AIR runtime?

    3. is it possible to invite the user to download and install older versions of AIR? Where can I find her?

    I hope I can help, because the problem is global.

    Hi Astraport,

    I think you should integrate the air in your application runtime,

    Some time ago I wrote a step by step guide, take a look at this post:

    http://forums.Adobe.com/message/3961579#3961579

    I hope it helps

  • Adobe AIR for Android update fails to UPDATE

    Why the update for Adobe AIR is a failure to update, and also how is it that no one is able to install?

    Nathan I would recommend posting a request on the Adobe AIR http://forums.adobe.com/community/airforum.

  • Adobe AIR for Android as3 codes work only not for this one project

    I am using the accelerometer in my flash game, which works for all the other projects I'm trying, but for some reason any on a project if I try to use it I get, using the same code that I've used before, such as this one.

    1046: type was not found or is not a constant of compilation: accelerometer.

    1180: call to a method may be undefined, accelerometer.

    It is a quite old file, not if old, then, are there files I have to add to make it work or I need to change the settings? It's very frustrating, I don't know what the problem might be. Can someone help me?

    The error message indicates it does not find the class.  Make sure you import it:

    import flash.sensors.Accelerometer;

  • Evaluation system for Adobe air

    Hello

    I wonder how to ask users to rate my apps.

    I want to like this

    http://Livedoor.blogimg.jp/socialgame_blog/IMGs/5/8/58b0ccc0.PNG

    Does anyone know how to do this?

    It is ENA that can display a native dialog box, and if the user chooses to rate the app you can link to page listing for the app store that you use. Or you can simply design your own set of boxes, which even match the look of your game, and again, then send them to the quote page. If you use iTunes, the URL go you would be like this:

    http://iTunes.Apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?ID=123456789&PAG eNumber = 0 & sortOrdering = 2 & type = purple + software & mt = 8

    where ID is the id of this app.

    Another thing, you could do is use a DONKEY that does more for you, like RateBox for example:

    RateBox Extension Native of sides for Adobe AIR - ANEs by Milkman Games

  • the overview of the .pdf on Android using flash adobe air app.

    Hello

    can someone help me?

    Thanks Gerard.

    Hello

    Adobe AIR is not for PDF documents.  You will need a PDF as Adobe Acrobat Reader - Android applications on Google game player

    --

    Maria

  • Adobe Air for Flash CS6 works only on Android 5.0.2

    Hello

    I tried to publish a game that I have developed in Adobe Flash CS6 using the Adobe Air platform.

    I've done this countless times before, I'm not new to develop in Flash.

    Even if everyone thinks that HTML5 will take over as "Flash is dead" I still think it's a great development platform.

    I have trouble getting my APK files to run on Android 5.0.2 (Lolipop) without apparent reason.

    If I choose to install AIR separately, it works. If I decide to incorporate it into the APK, it gives an error immediately after the launch of the app.

    There is no error code and nothing I can do reference. just an error "The Application was able to start".

    I would be grateful if someone could help, thanks.

    This article was written 7 months ago, there is a good chance that the AIR is ok with 5 Android now. Even the article, that it was fixed in 5.0.1.

    AIR installed on the computer is not the same as the AIR SDK. You don't want to not download either version of the AIR SDK:

    Download Adobe AIR SDK

    or download the latest beta, which is be AIR 19:

    Download Adobe AIR 19 Beta - Adobe Labs

    Once it has downloaded and unzipped, you will have a record. Now go to the Help menu of Flash Pro and select managed Adobe AIR SDK...

    Here, you can add an item and navigate to where the folder is located. It can be anywhere, I tend to leave in my downloads folder.

    If you were to take the file act.jar of this article it would be things likely to mess. But just as a point of interest to Flash Pro users, the file is located in the SDK folder, inside the lib folder.

    So, the short version of what I hope are you currently build for AIR 3.2, who would have a chance with the latest versions of Android, and edit using AIR 18 or 19 would be a good idea.

  • Air for Android 16.0 - cannot use the native extension that include android-support-v4 - ClassNotFoundException

    Hello

    This is my first question here, and I really need help on this problem. We are been struggling for a few days on the following error message: C

    05-12 17:35:29.321: E/AndroidRuntime (26531): FATAL error: IntentService [MCGcmIntentService]

    05-12 17:35:29.321: E/AndroidRuntime (26531): process: air.com.mooncat.androidTest, PID: 26531

    05-12 17:35:29.321: E/AndroidRuntime (26531): java.lang.NoClassDefFoundError: doesn't have a resolution of: generator Landroid/support/v4/app/NotificationCompat$;

    05-12 17:35:29.321: E/AndroidRuntime (26531): to com.mooncat.MCGooglePlayServices.MCGcmIntentService.sendNotification (MCGcmIntentService.j ava: 92)

    05-12 17:35:29.321: E/AndroidRuntime (26531): to com.mooncat.MCGooglePlayServices.MCGcmIntentService.onHandleIntent (MCGcmIntentService.jav one: 48)

    05-12 17:35:29.321: E/AndroidRuntime (26531): to android.app.IntentService$ ServiceHandler.handleMessage (IntentService.java:65)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at android.os.Handler.dispatchMessage(Handler.java:102)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at android.os.Looper.loop(Looper.java:145)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at android.os.HandlerThread.run(HandlerThread.java:61)

    05-12 17:35:29.321: E/AndroidRuntime (26531): caused by: java.lang.ClassNotFoundException: did not find class ' android.support.v4.app.NotificationCompat$ Builder " on the path: DexPathList [[zip file ' /data/app/air.com.mooncat.androidTest-1/base.apk"],nativeLibraryDirectories=[/data/app/a ir.com.mooncat.androidTest-1/lib/arm, / vendor/lib, / system/lib ']]

    05-12 17:35:29.321: E/AndroidRuntime (26531): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

    05-12 17:35:29.321: E/AndroidRuntime (26531):... 6 more

    05-12 17:35:29.321: E/AndroidRuntime (26531): deleted: java.lang.ClassNotFoundException: android.support.v4.app.NotificationCompat$ Builder

    05-12 17:35:29.321: E/AndroidRuntime (26531): at java.lang.Class.classForName (Native Method)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

    05-12 17:35:29.321: E/AndroidRuntime (26531): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

    05-12 17:35:29.321: E/AndroidRuntime (26531):... 7 more

    05-12 17:35:29.321: E/AndroidRuntime (26531): caused by: java.lang.NoClassDefFoundError: class not found using the charger to start class; no batteries available

    My Native Extension use Google Services play and rely on support android v4. Google services functions perfectly works play (for example: I am able to save the token with the google cloud features).

    I've seen this problem in another thread in github and seems that they solve it, but it does not fit my case. It's like in the publication of flash support android v4 is "removed". I say this because I tried to decompile the generated apk and I discovered that sources exist (like com / / thing, com, google, android, gms /...) BUT not the android/support/v4 /... On the contrary, seems that the apk build contains only the android/support/v7/appcompat/R.java (.java because is decompiled). In the .ane file, I have the Android - support.v4.jar and also the contents of platform.xml to/META-INF/ANE/Android-ARM. In the platform.xml I have this:

    <? XML version = "1.0" encoding = "utf-8"? >

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

    < packagedDependencies >

    < packagedDependency >android-support - v4.jar< / packagedDependency >

    < packagedDependency >google-game - services.jar< / packagedDependency >

    < / packagedDependencies >

    < packagedResources >

    < packagedResource >

    com.Google.Android.GMS < packageName > < / packageName >

    < folder_name > google-game-services-res < / FolderName >

    < / packagedResource >

    < / packagedResources >

    < / platform >


    In the eclipse project, I tried to register the library of v4 support in all possible ways, such as addiction, external jar, or kept as a defult library in the libs folder. Nothing works...


    I really can't understand hot to fix this crazy...

    I just discover the problem... just crazy!

    It was caused by the version of android.support.v4.jar. I did a test now, for some reason any magic, using one I had before (I got it, in Eclipse, with a right click on the library project, Android tools > add Media Library, it was not recognized). Then, I tried with the other two different versions of android.support.v4.jar, and this solved the problem as if by magic! Just to say, using the method add the support library, the size of the file android.support.v4 was 1.2 MB, the other two versions were respectively 759 KB and 628 kb, according to their version. I expected that this library has been correctly added by eclipse, also relying on the target of androd in the project.properties, but does not appear. Hope this might help someone.

    PS: like all the other thread suggest, don't forget that the android.support.v4.jar is included in your DONKEY file, and the platform.xml explicitly declare it as .

  • BlackBerry 10 Adobe Air gone permanently.

    One of my most used apps was Vault by XLabz. She and a dozen others are dead on my Z30 in BB10.3.1. Here is the response from XLABZ.

    "Arch and most of our older applications were built using a technology called Adobe AIR. BlackBerry ceased support for Adobe AIR with their last update of the OS and any application that you have on your device that uses Adobe AIR (many of them on BlackBerry World) would stop working as a result. The only other platform that is supported is Android.

    We are now building a native Android version of vault to counteract this problem, but it would mean a few things:

    (1) If you have all your data stored on DropBox data would be safe and you can restore data from DropBox as soon as we publish the Android on BlackBerry World version. However, if you do not have backups, then there is no way to get the data back or even back up now since does not allow the old app more to do.

    (2) the update is released, you need to delete the old application and manually install the new version. The only upgrade will not work. Remove the old APP will remove all the files that you saved locally for the app - however, if you have your data already backed up, there is nothing to worry about.

    (3) we do not have an ETA for the release and it could take about 3-4 weeks for us to release the Android version in the BlackBerry World.

    (4) If you don't want to wait, and if you already have a device Android with Google Play access, the version is native Android already available and you can buy it from there.

    We understand that this is a big disadvantage for you as a user and our sincere apologies for this. However, as developers we do not drive decision-making platform for BlackBerry there was nothing we could do about it. »

    just to add more information:

    (1) adobe has decided to abandon the Flash for mobile support. This means that if safety issues, Adobe refuses to correct for the mobile Flash. For BlackBerry and Google are remove the Flash support on their mobile OS (BB10 and Android).

    (2) adobe is also declining air support for mobile. Same story as above.

    (3) the air developers have been informed of the interruption of air support to 10.3, several months ago. The standard procedure for them is to design a new version of their application, this time is in the Air in Android and release for BlackBerry World, with the same application ID. In this way, the files of the previous version are always accessible by the new version of the app. It seems that this developer has not got everything that in the time before the release of OS 10.3.

    (4) for a reason unknown to me, Android does not officially on dropping air support.

  • Air for Android App Playbook

    I tried to use the APK for BAR converter on the blackberry site.  I used an app, I've done in the Air Flash CS5.5 for Android.  When it has been sent for approval, I was sent that the app was rejected as she asked the user install Adobe Air.

    Now, I look and see that I need a Flash Builder project?  How can I use my CS5 flash project?  Command line tools keep telling me that I don't have an application descriptor file.  I have the MyName - app.xml and bar - descriptor.xml.

    Thank you.

    You must add all your assets to the .bar file explicitly. Using graph, on the first 'build air' tab on the bottom, there is the 'additional files' try add your Active Directory it.

  • Porting an application multi-threaded for Adobe Air.

    Someone at - it never been faced with this task?

    The application in question has a thread about 10 in addition to the main user interface thread.

    Each thread is blocking ops in long-distance communication, GPS, HTTP, manipulation of the filesystem, processing of data of general application, SQL execution, etc.

    Very little of it is based on the direct interaction of the user.

    Is it possible to get something like this in Adobe Air?

    Or simply wait for Android/BB... which would be realistic player out right at about the time where that this port is complete.

    Support an implementation not threaded with threaded implementations could be a lot of work.  I would recommend waiting.

    AIR has a flash.utils.Timer class, or a simple setTimeout() call that uses only the timer below.  The question is not "burden" on the UI thread, depending on CPU load... work has to be done one way or the other.  The issue is latency, in terms of how long it takes the application to respond to user events, or how long to make the updates.  Do more that small pieces at a time in the main thread, you will feel your app slow and inconsistent, with irregular updates and (if you try) animations jerks.

    Thread safety is not a big deal, normally... it is a matter of concern for applications poorly structured in a multithreaded environment.  Properly structured multi-threaded applications will eventually look a lot like an AIR application, with respect to certain things (for example, GPS pilot or connections SQLite) communicating through mechanisms of threads (queues, events, etc.) with the main thread.

    Called async stuff basically back to the main thread.  What are the event listeners.  You might be better not think of it as a wire when even... it's not like your "main thread" in another application, perhaps, where you have full control.  This is the main thread in a framework of GUI like WxWidgets or QT or whatever... everything is done with events and you * must * return to the caller (the frame) as quickly as possible or you will have a user experience impact.  Basically, the entire application is a collection of event listeners, with no place where you can implement a "loop of interrogation" for example, as you might in a different environment.

    Rather than stuff on 'simple threaded environments', you should probably just search for "asynchronous programming" or "event-driven" stuff.  There not much more to it than that.

  • Adobe Air 2.5 vs 21.0?

    When you create an AIR applications to animate, there are the following options:

    Air 2.5

    Air 21.x for ios and android?

    What is 2.5?

    How do you publish for 22.0?

    Air 2.5 has been used in the past and can't be used, especially for ios.

    you add air update of the sdk to animate by downloading and uncompressing the sdk, find and download versions archived Adobe AIR SDK

    (if you want to check a sdk beta, google labs of adobe air sdk).

    to add to animate, click Help > manage adobe air sdk > + (IE, add) > navigate to the folder where you extracted the sdk.

Maybe you are looking for