Trying to run an Android game using libgdx on Genymotion

Has anyone come across libgdx and genymotion?

I am trying to get a libgdx game running on the genymotion android emulator - http://www.genymotion.com/

Every time I try to run 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 great with AVD

Android API 16 libgdx 0.9.9 Genymotion 1.1.0

+8
android genymotion libgdx
source share
1 answer

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

To use the x86 natives, simply copy the x86 / folder with the night codes into your projects / folders for Android projects (next to the armeabi and armeabi-v7a folders). -UI installations will not automatically add these libraries. I decided to do it this way while x86 Android devices are very rare and youd just blow up the size of your APK without need.

+5
source share

All Articles