0

my game crashes on my Lenovo IdeaTab A2109 running android 4.1.1(it seemed to work previously), but it works fine on my galaxy s2 running android 4.1.2. My minSDK in Manifest file: 14 and target: 18. I'm using IntelliJ IDEA 12.1.4. I checked the export thing in my android module, didn't solve my problem.

    09-20 13:22:14.269: WARN/dalvikvm(11166): Exception Lcom/badlogic/gdx/utils/GdxRuntimeException; thrown while initializing Lcom/badlogic/gdx/backends/android/AndroidApplication;

    09-20 13:22:14.269: WARN/dalvikvm(11166): Class init failed in newInstance call (Lcom/comraz/slashem/MainActivity;)

    09-20 13:22:14.269: DEBUG/AndroidRuntime(11166): Shutting down VM

    09-20 13:22:14.269: WARN/dalvikvm(11166): threadid=1: thread exiting with uncaught exception (group=0x411102a0)

    09-20 13:22:14.269: ERROR/AndroidRuntime(11166): FATAL EXCEPTION: main

    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)

Edit:

I created an eclipse project and added all my classes there and it seem to open, but when I reach my gamescreen everything is black. Everything is fine with the Samsung, I can see everything

Solved:

GdxRuntimeException on Android: couldn't load shared library 'gdx' for target

farskeptic's answer

Community
  • 1
  • 1
jos_fzr
  • 188
  • 2
  • 10
  • Is there more to the log? `ExceptionInInitializer` is usually only thrown if there is some other exception that fired during a constructor. – P.T. Sep 20 '13 at 14:31
  • @P.T. could it be the first line of my log? the one with the GdxRuntimeException? – jos_fzr Sep 20 '13 at 14:41
  • @P.T. Here's my log: https://www.dropbox.com/s/p68r3yisg3chntg/log.txt – jos_fzr Sep 20 '13 at 14:48
  • Maybe (the GdxRuntimeException often wraps other exceptions). But there should be a backtrace that pin-points where the original exception is being thrown. – P.T. Sep 20 '13 at 14:49
  • This: Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx: findLibrary returned null – P.T. Sep 20 '13 at 14:50
  • See http://stackoverflow.com/questions/16698358/gdxruntimeexception-on-android-couldnt-load-shared-library-gdx-for-target – P.T. Sep 20 '13 at 14:53

0 Answers0