我目前正在使用 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 合规性,所以这应该不是问题。我有点沮丧,所以我再次尝试按照基本安装教程进行操作,但我遇到了同样的错误。所以最后我想到在这里发帖,有人可以说明如何解决这个问题吗?