Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Android L, Lollipop, doesn't like Gideros — Gideros Forum

Android L, Lollipop, doesn't like Gideros

totebototebo Member
edited November 2014 in Bugs and issues
Hi guys,

I have installed Android L, and after scratching the surface I have found two issues. Both of these work on previous versions of Android.

SoundChannel:setLooping(true) doesn't work. It plays the sound as one shot.

GBridge now seems to be broken:
11-19 20:36:06.362: A/art(24863): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: illegal class name 'com.giderosmobile.android.plugins.bridge.GBridge'
11-19 20:36:06.362: A/art(24863): art/runtime/check_jni.cc:65]     (should be of the form 'package/Class', [Lpackage/Class;' or '[[B')
11-19 20:36:06.362: A/art(24863): art/runtime/check_jni.cc:65]     in call to FindClass
11-19 20:36:06.362: A/art(24863): art/runtime/check_jni.cc:65]     from void com.giderosmobile.android.player.GiderosApplication.nativeDrawFrame()
Help?

:)

Niclas

My Gideros games: www.totebo.com

Comments

  • The looping doesn't work with some files.

    Try this as a workaround:

    masterVolume=0.2
    local musicSfx=Sound.new("music.mp3")
    local music=musicSfx:play()
    function restartMusic()
    music:removeEventListener(Event.COMPLETE,restartMusic)
    music=musicSfx:play()
    if music then
    music:setVolume(masterVolume)
    music:addEventListener(Event.COMPLETE,restartMusic)
    end
    end
    if music then
    music:setVolume(masterVolume)
    music:addEventListener(Event.COMPLETE,restartMusic)
    end
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • @totebo thats interesting
    looking at github code, then inside:
    https://github.com/gideros/giderosplugins/blob/master/AndroidBridge/source/Android/jni/native.cpp

    It requests class correctly:
    obj = env->FindClass("com/giderosmobile/android/plugins/bridge/GBridge");

    Why does it say it requests class with dot separator in your case? Have no idea
  • Thanks guys! Will try that workaround @SinisterSoft. Just a heads up really since Google are rolling out Android L now. Penetration is likely to be low at the moment.
    My Gideros games: www.totebo.com
  • Hi @ar2rsawseen I installed Android 5 on my nexus 5 and downloaded Mashballs to see if your app still works and it does not - it would crash on a launch screen. My app still works though luckily. Are there any known issues with 5 or something that does not work?
  • @boriskey yes Mashballs was created with a very old Gideros version, most probably there are some fixes in newer Gideros version

    But all in all @boriskey do you experience any other problem with your apps on Android L?
  • mine works fine, including your ads and inapp plugins, so very happy with it. Only if I could get more downloads on Android :) Getting x2 times more downloads on iOS and also more money from admob on ios.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • john26john26 Maintainer
    I can confirm that Nebula Retro runs fine on Lollipop. I persuaded a friend to let me install it and it's all fine.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • All mine seem to work fine. :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Just confirm @ar2rsawseen I have the same error with @totebo in android L device:

    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: illegal class name 'com.giderosmobile.android.plugins.bridge.GBridge'
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] (should be of the form 'package/Class', [Lpackage/Class;' or '[[B')
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] in call to FindClass
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] from void com.giderosmobile.android.player.GiderosApplication.nativeDrawFrame()
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] "GLThread 5891" prio=5 tid=18 Runnable
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12cd7170 self=0xab38b2f8
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] | sysTid=21786 nice=0 cgrp=apps sched=0/0 handle=0xab38b928
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] | state=R schedstat=( 119074166 24038435 172 ) utm=9 stm=2 core=0 HZ=100
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] | stack=0xe5f44000-0xe5f46000 stackSize=1036KB
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] native: #00 pc 0000463c /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] native: #01 pc 00002e8d /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] native: #02 pc 0023f65d /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)
    06-11 11:18:10.946: A/art(21762): art/runtime/check_jni.cc:65] native: #03 pc 0022481f /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+146)
    06-11 11:18:10.947: A/art(21762): art/runtime/check_jni.cc:65] native: #04 pc 000af9c3 /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
    06-11 11:18:10.947: A/art(21762): art/runtime/check_jni.cc:65] native: #05 pc 000b00fd /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
    06-11 11:18:10.947: A/art(21762): art/runtime/check_jni.cc:65] native: #06 pc 000b3f13 /system/lib/libart.so (art::CheckJNI::FindClass(_JNIEnv*, char const*)+58)
    Coming soon
  • ar2rsawseenar2rsawseen Maintainer
    yes, there seems to be a change in JNI starting from Lolipop, will try to catch the difference
    +1 -1 (+1 / -0 )Share on Facebook
  • Today, i found interesting fact that when i export game with signature (final apk), the error gone and game run as normal :))
    That error only occurs at debug process!

    Likes: theone10, MoKaLux

    Coming soon
    +1 -1 (+2 / -0 )Share on Facebook
  • Today, i found interesting fact that when i export game with signature (final apk), the error gone and game run as normal :))
    That error only occurs at debug process!

    I had the same problem. This worked. Thanks
Sign In or Register to comment.