Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Android: Examples fail on emulator/real device (NoClassDefFoundError:...AudioDevice), work on player — Gideros Forum

Android: Examples fail on emulator/real device (NoClassDefFoundError:...AudioDevice), work on player

MichalMichal Member
edited March 2012 in Bugs and issues
Hello, I tried to run sample applications for Android, but failed. I am using ArchLinux with wine 1.5.0 (and both Studio and Player work OK, v. 2012.2.1), but when exporting for android and the compiling/running using eclipse (3.7.2) + android sdk (current), I got error in emulator: "Unfortunately, Jumping Ball has stopped", and on logcat console I get: "E/AndroidRuntime(548): java.lang.NoClassDefFoundError: com.giderosmobile.android.player.AudioDevice". For real device (HTC Desire, Android 2.2) I get the same message (did not check logcat), I tried both Jumping Ball and Bird Animation.
In emulator, I tried targets for API Levels of 8, 10 and 15 - all with the same results.
Is this a known bug/error? Any suggestion to get it working?

Dislikes: adipose

+1 -1 (+0 / -1 )Share on Facebook

Comments

  • atilimatilim Maintainer
    Hi,

    This is interesting. Can you see gideros.jar added to your project? Because the class com.giderosmobile.android.player.AudioDevice is defined there.

  • This is the same error that I received when I try to make an APK.
  • Sure, it is within my eclipse project:
    $ unzip -l gideros.jar |grep -i au
    2455 2012-02-23 22:25 com/giderosmobile/android/player/AudioDevice.class

    Should it be also within apk file? Because I get this:

    $ ls -l Bird\ Animation.apk
    -rw-r--r-- 1 user users 2551022 03-23 14:05 Bird Animation.apk

    $ unzip -l Bird\ Animation.apk
    Archive: Bird Animation.apk
    Length Date Time Name
    --------- ---------- ----- ----
    151 2012-03-23 14:05 assets/assets/allfiles.txt
    1283 2012-03-23 13:54 assets/assets/bird.lua.jet
    3501 2011-06-07 12:34 assets/assets/bird_black_01.png
    3040 2011-06-07 12:34 assets/assets/bird_black_02.png
    3492 2011-06-07 12:34 assets/assets/bird_black_03.png
    5059 2011-06-07 12:34 assets/assets/bird_white_01.png
    4298 2011-06-07 12:34 assets/assets/bird_white_02.png
    4997 2011-06-07 12:34 assets/assets/bird_white_03.png
    20 2012-03-23 13:54 assets/assets/luafiles.txt.jet
    494 2012-03-23 13:54 assets/assets/main.lua.jet
    32 2012-03-23 13:54 assets/assets/properties.bin.jet
    97791 2011-06-07 12:35 assets/assets/sky_world.png
    2736 2012-03-23 14:05 AndroidManifest.xml
    1008 2012-03-23 14:05 resources.arsc
    3966 2012-03-23 13:57 res/drawable-hdpi/icon.png
    1537 2012-03-23 13:57 res/drawable-ldpi/icon.png
    2200 2012-03-23 13:57 res/drawable-mdpi/icon.png
    5560 2012-03-23 14:05 classes.dex
    2792664 2012-02-23 21:26 lib/armeabi-v7a/libgideros.so
    2874156 2012-02-23 21:26 lib/armeabi/libgideros.so
    --------- -------
    5807985 20 files

    Still looking for any pointers...
  • atilimatilim Maintainer
    Fortunately I got the same error with @static's example. I'm trying to find the bug.
  • @Michal The class file 'com/giderosmobile/android/player/AudioDevice.class' will be embedded in the 'classes.dex' file which is why you can't see it.
  • Thanks for the info. How do I debug this file on linux? I got this far:

    $ strings classes.dex |grep -i aud
    .Lcom/giderosmobile/android/player/AudioDevice;
    audioDevice

    Anyways, if the bug is reproducible, I can only hope to get it resolved. BTW, I have installed the player on HP TouchPad (with Android 4.0.3 Alpha) and that works great, so I can taste it ;)
Sign In or Register to comment.