android - java.lang.NoClassDefFoundError & Failed resolving ... interface 804 (LibGDX) -


i'm building game using libgdx , i've been able launch both desktop , android projects, integrated additional external library , android project failing launch (however desktop project still launches no errors).

the logcat output is:

06-19 13:34:04.011: e/trace(16405): error opening trace file: no such file or directory (2) 06-19 13:34:04.777: d/dalvikvm(16405): trying load lib /data/data/com.kittykazoo.distantshores.android/lib/libgdx.so 0x41703278 06-19 13:34:05.011: d/dalvikvm(16405): added shared lib /data/data/com.kittykazoo.distantshores.android/lib/libgdx.so 0x41703278 06-19 13:34:05.011: d/dalvikvm(16405): no jni_onload found in /data/data/com.kittykazoo.distantshores.android/lib/libgdx.so 0x41703278, skipping init 06-19 13:34:05.230: i/dalvikvm(16405): failed resolving lcom/kittykazoo/distantshores/distantshores$1; interface 804 'lcom/badlogic/gdx/pay/purchaseobserver;' 06-19 13:34:05.230: w/dalvikvm(16405): link of class 'lcom/kittykazoo/distantshores/distantshores$1;' failed 06-19 13:34:05.238: e/dalvikvm(16405): not find class 'com.kittykazoo.distantshores.distantshores$1', referenced method com.kittykazoo.distantshores.distantshores.<init> 06-19 13:34:05.238: w/dalvikvm(16405): vfy: unable resolve new-instance 1258 (lcom/kittykazoo/distantshores/distantshores$1;) in lcom/kittykazoo/distantshores/distantshores; 06-19 13:34:05.238: d/dalvikvm(16405): vfy: replacing opcode 0x22 @ 0x0003 06-19 13:34:05.238: i/dalvikvm(16405): failed resolving lcom/kittykazoo/distantshores/distantshores$1; interface 804 'lcom/badlogic/gdx/pay/purchaseobserver;' 06-19 13:34:05.238: w/dalvikvm(16405): link of class 'lcom/kittykazoo/distantshores/distantshores$1;' failed 06-19 13:34:05.238: d/dalvikvm(16405): dexopt: unable opt direct call 0x3668 @ 0x05 in lcom/kittykazoo/distantshores/distantshores;.<init> 06-19 13:34:05.238: d/dalvikvm(16405): dexopt: unable opt direct call 0x2017 @ 0x0c in lcom/kittykazoo/distantshores/distantshores;.<init> 06-19 13:34:05.246: d/dalvikvm(16405): dexopt: unable opt direct call 0x2013 @ 0x15 in lcom/kittykazoo/distantshores/distantshores;.<init> 06-19 13:34:05.246: i/dalvikvm(16405): dexopt: unable optimize static field ref 0x10d8 @ 0x18 in lcom/kittykazoo/distantshores/distantshores;.<init> 06-19 13:34:05.324: d/androidruntime(16405): shutting down vm 06-19 13:34:05.324: w/dalvikvm(16405): threadid=1: thread exiting uncaught exception (group=0x40f032a0) 06-19 13:34:05.597: e/androidruntime(16405): fatal exception: main 06-19 13:34:05.597: e/androidruntime(16405): java.lang.noclassdeffounderror: com.kittykazoo.distantshores.distantshores$1 06-19 13:34:05.597: e/androidruntime(16405):    @ com.kittykazoo.distantshores.distantshores.<init>(distantshores.java:43) 06-19 13:34:05.597: e/androidruntime(16405):    @ com.kittykazoo.distantshores.android.androidlauncher.oncreate(androidlauncher.java:18) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.activity.performcreate(activity.java:5058) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1079) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2100) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.activitythread.handlelaunchactivity(activitythread.java:2174) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.activitythread.access$700(activitythread.java:141) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.activitythread$h.handlemessage(activitythread.java:1267) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.os.handler.dispatchmessage(handler.java:99) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.os.looper.loop(looper.java:137) 06-19 13:34:05.597: e/androidruntime(16405):    @ android.app.activitythread.main(activitythread.java:5059) 06-19 13:34:05.597: e/androidruntime(16405):    @ java.lang.reflect.method.invokenative(native method) 06-19 13:34:05.597: e/androidruntime(16405):    @ java.lang.reflect.method.invoke(method.java:511) 06-19 13:34:05.597: e/androidruntime(16405):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:792) 06-19 13:34:05.597: e/androidruntime(16405):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:555) 06-19 13:34:05.597: e/androidruntime(16405):    @ dalvik.system.nativestart.main(native method) 

as far know imported library properly, it's showing in project's referenced libraries folder, maybe missed something?

using eclipse in case helps.

this blogger claims have more date tutorial (eclipse): http://www.piotrjastrzebski.io/blog/libgdx-gradle-tutorial

here forum other people discussing same error message have: http://badlogicgames.com/forum/viewtopic.php?f=11&t=13710

in general might more relevant advice if post on forum instead of stackoverflow. (although no reason not post both)

http://badlogicgames.com/forum/viewforum.php?f=11&sid=3cbebdbdd7e8df970c6bd1cbfc84de37

for example, android developer, , can think of few things might typically go wrong when importing library project, seems lib has setup library (gdx-setup.jar) stuff outside of control , cannot advise on.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -