Trying to run Android game using libgdx on Genymotion

Anybody experienced with libgdx and genymotion?

I’m trying to get a libgdx game running on genymotion android emulator – http://www.genymotion.com/

  • Android: Remove only bottom FadingEdge effect from scroll bar
  • Get list of registered Pending Intents in Android OS
  • What is the difference between getExtras and getBundleExtras?
  • Listen to volume changes events on Android
  • Google MAPs API for android limit 2500 requests/day is per client device or per application key?
  • ListView with CHOICE_MODE_MULTIPLE using CheckedText in a custom view
  • Everytime I try to run on genymotion I get the following exception:

    java.lang.ExceptionInInitializerError
        at java.lang.Class.newInstanceImpl(Native Method)
        at java.lang.Class.newInstance(Class.java:1319)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
        at android.app.ActivityThread.access$600(ActivityThread.java:130)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:4745)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx' for target: Linux, 32-bit
        at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
        at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34)
        at com.badlogic.gdx.backends.android.AndroidApplication.<clinit>(AndroidApplication.java:61)
        ... 15 more
     Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx: findLibrary returned null
        at java.lang.Runtime.loadLibrary(Runtime.java:365)
        at java.lang.System.loadLibrary(System.java:535)
        at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:109)
        ... 17 more
    

    Any Ideas?

    Works fine with AVD

    Android API 16
    libgdx 0.9.9
    Genymotion 1.1.0

    Related posts:

    How to use multiple listviews in a single activity on android?
    Unable to get Robotium to work in Android Studio
    How to install an Android application on a real device without publishing and Eclipse?
    Android: download file from server and show the download progress in the notification bar using Asyn...
    Android: What Audio Mode should be set to send receive voice between devices
    listView onclick goes to a new activity
  • Using the Android SDK on a Mac, Eclipse is really slow. How can I speed it up?
  • Accessing a certain downloaded .sqlite database in external storage from an android app
  • Is it possible to lose a SQLite database connection?
  • Android and supporting multiple screens layouts
  • Android up navigation for an Activity with multiple parents
  • Android NDK - building TessTwo (Fork of Tesseract Tools for Android) - ndk-build fails
  • One Solution collect form web for “Trying to run Android game using libgdx on Genymotion”

    You should try to add the x86 native libraries to your libs folder as mentioned in this post

    To use the x86 natives, simply copy the x86/ folder from the nightlies to your Android project’s libs/ folder (next to the armeabi and armeabi-v7a folder). The setup-ui will not add those libraries for you automatically. I opted to do it this way for the time being as x86 Android devices are super rare, and you’d just blow up the size of your APK unnecessarily.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.