我目前正在使用libgdx进行游戏,我正在写作,我只是在2个月前继续编写这个游戏,所以我启动了eclipse,更新了所有内容(需要一段时间),然后继续在PC上编程,修复一些错误并添加内容。后来我试着在我的android(Galaxy Nexus)上运行它,但是我收到了一个错误:
04-24 09:51:57.620: E/dalvikvm(19561): Could not find class 'com.thundergodpc.ThunderGod', referenced from method com.thundergodandroid.ThunderGodActivity.onCreate
04-24 09:51:57.620: W/dalvikvm(19561): VFY: unable to resolve new-instance 616 (Lcom/thundergodpc/ThunderGod;) in Lcom/thundergodandroid/ThunderGodActivity;
04-24 09:51:57.620: D/dalvikvm(19561): VFY: replacing opcode 0x22 at 0x0003
04-24 09:51:57.620: D/dalvikvm(19561): DexOpt: unable to opt direct call 0x19b2 at 0x05 in Lcom/thundergodandroid/ThunderGodActivity;.onCreate
04-24 09:51:57.620: D/dalvikvm(19561): Trying to load lib /data/data/com.thundergod/lib/libgdx.so 0x41817918
04-24 09:51:57.628: D/dalvikvm(19561): Added shared lib /data/data/com.thundergod/lib/libgdx.so 0x41817918
04-24 09:51:57.628: D/dalvikvm(19561): No JNI_OnLoad found in /data/data/com.thundergod/lib/libgdx.so 0x41817918, skipping init
04-24 09:51:57.628: D/AndroidRuntime(19561): Shutting down VM
04-24 09:51:57.628: W/dalvikvm(19561): threadid=1: thread exiting with uncaught exception (group=0x40a5a1f8)
04-24 09:51:57.698: E/AndroidRuntime(19561): FATAL EXCEPTION: main
04-24 09:51:57.698: E/AndroidRuntime(19561): java.lang.NoClassDefFoundError: com.thundergodpc.ThunderGod
我想也许我在桌面上使用1.7但是我正在使用1.6 JDK合规性,所以这应该不是问题。我有点沮丧,所以我再次尝试按照基本安装教程,但我得到了同样的错误。所以最后我想在这里发帖,有人能解释一下如何解决这个问题吗?