Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Can not run apps on Jelly Bean and ICS — Gideros Forum

Can not run apps on Jelly Bean and ICS

AgasiGPAgasiGP Member
edited October 2012 in General questions
Hi everyone,i've just using gideros and it's really nice. I just wanna ask, if gideros support for android only for android 2.2 (froyo) and 2.3 (gingerbread) version? Because when I try it on ICS and jelly bean (ICS real device and emulator,jelly bean emulator),the application won't run and just stopped. When i try it on froyo and gingerbread,it run well,using both real device and emulator. The logcat show the eror below

10-23 07:58:42.830: E/AndroidRuntime(1618): FATAL EXCEPTION: main
10-23 07:58:42.830: E/AndroidRuntime(1618): java.lang.ExceptionInInitializerError
10-23 07:58:42.830: E/AndroidRuntime(1618): at java.lang.Class.newInstanceImpl(Native Method)
10-23 07:58:42.830: E/AndroidRuntime(1618): at java.lang.Class.newInstance(Class.java:1319)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.app.ActivityThread.access$600(ActivityThread.java:123)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.os.Handler.dispatchMessage(Handler.java:99)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.os.Looper.loop(Looper.java:137)
10-23 07:58:42.830: E/AndroidRuntime(1618): at android.app.ActivityThread.main(ActivityThread.java:4424)
10-23 07:58:42.830: E/AndroidRuntime(1618): at java.lang.reflect.Method.invokeNative(Native Method)
10-23 07:58:42.830: E/AndroidRuntime(1618): at java.lang.reflect.Method.invoke(Method.java:511)
10-23 07:58:42.830: E/AndroidRuntime(1618): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
10-23 07:58:42.830: E/AndroidRuntime(1618): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
10-23 07:58:42.830: E/AndroidRuntime(1618): at dalvik.system.NativeStart.main(Native Method)
10-23 07:58:42.830: E/AndroidRuntime(1618): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gideros: findLibrary returned null
10-23 07:58:42.830: E/AndroidRuntime(1618): at java.lang.Runtime.loadLibrary(Runtime.java:365)
10-23 07:58:42.830: E/AndroidRuntime(1618): at java.lang.System.loadLibrary(System.java:535)
10-23 07:58:42.830: E/AndroidRuntime(1618): at com.giderosmobile.android.SewersActivity.(SewersActivity.java:22)
10-23 07:58:42.830: E/AndroidRuntime(1618): ... 15 more

So,any ideas how to solve the problem? Looking for your help guys,thanks.

Dislikes: unlying

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

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    @AgasiGP do you have the latest Android SDK version installed?
  • ar2rsawseen Yes,i ahve installed the latest Android SDK version.
    Screenshot from 2012-10-23 15:55:18.png
    952 x 443 - 65K
  • atilimatilim Maintainer
    Interesting. Don't rely on AVD but what's the model of your device which runs ICS? Maybe we can add that device to our test devices.
  • ScouserScouser Guru
    edited October 2012
    I run & test my apps on a 7" tablet with ICS v4.0.3 and I don't have any problems at all.. I notice from the logcat output that your problem appears to be in your SewersActivity.java on line 22 which is the line that loads the gideros library.

    It appears that findLibrary couldn't load libgideros.so from the libs/armeabi or libs\armeabi-v7a folders.

    This would suggest that maybe these folders are missing and that's where your problem lies. This can sometimes occur if you are writing your own plugins and have cleaned the project. I found that eclipse will delete the folders if you try to clean the project when writing/using your own plugins.

    The way I get around this is by copying the libs folder to another folder (usually lib) and modify my Android.mk file to use this folder instead like so
    #
    # Gideros Shared Library
    # 
    include $(CLEAR_VARS)
     
    LOCAL_MODULE            := gideros
    # LOCAL_SRC_FILES         := libs/$(TARGET_ARCH_ABI)/libgideros.so
    LOCAL_SRC_FILES         := lib/$(TARGET_ARCH_ABI)/libgideros.so
     
    include $(PREBUILT_SHARED_LIBRARY)
    Hope this helps.
  • Scouser Thanks for the clue :-) Finally i found the problem and solution. The problem is that I'm using CPU/ABI Intel Atom (X86),not ARM on my ICS emulator. Therefore,the application cannot find the libs,wich is only for ARM. The solution is i change the ICS emulator using ARM,not Intel Atom (X86). My Apps is now running well on devices and emulator. Once again,thanks for the explanation and the clues :-)
  • john26john26 Maintainer
    Off topic (but related): is there any way to compile Android projects without using Eclipse? I hate Eclipse! One of the major benefits of Gideros is (should be) not having to use it!
  • And while you're at it, throw away xcode too, compile apps yourself inside Gideros!

    Just kidding.

    @john26 you see the problem is it would produce even more problems. In eclipse you can debug app to find if there is any different from Gideros player (usual problem - case sensitive filenames).
    It would require @atilim to invest a time in such a feature.
    I actually do not know if this is even possible. :)

    Likes: KeepTrying

    +1 -1 (+1 / -0 )Share on Facebook
  • ScouserScouser Guru
    edited October 2012
    @john26: You can develop for android without using Eclipse see here for full instructions on creating Ant scripts to compile, link and sign your apps. You may not like Eclipse but believe me it is so much easier to use it than not.

    The only way Gideros Studio could totally remove the need to use Eclipse would be to incorporate the ability to run Ant scripts (or some other scripting system) to do the java compilation & signing within the Gideros Studio IDE and I'm fairly confident that this is not going to happen any time soon (if ever).

    I have to confess that I can't see any problem with loading a project into eclipse and exporting the release APK. It takes a couple of mouse clicks and requires very little interaction with eclipse except to select the appropriate key with which to sign your app.

    Doh!! Ninja'd :(
  • john26john26 Maintainer
    Thanks for your advice about Eclipse. Maybe I should learn to love this package after all...

    @Scouser, actually I was particularly worried about what you said:

    "I found that eclipse will delete the folders if you try to clean the project when writing/using your own plugins"

    It horrifies me to think Eclipse will delete random stuff from my project! That's one reason I'd like to avoid this beast.

    It seems to me to avoid needing Eclipse, Gideros would only have to emit a build.xml file. We could then compile using Apache ant (which comes bundled with Android or Eclipse, I forget which)

  • @john26 it happens only if you develope plugins and set to update libs folder.

    Here in this tutorial:
    http://appcodingeasy.com/Gideros-Mobile/Creating-plugins-for-Android-in-Gideros

    I describe a way to generate new or copy existing libs when building and testing plugins using Android.mk file
Sign In or Register to comment.