问题描述
我目前正在学习 LibGDX 游戏引擎(版本1.9.4),并且我一直在运行尝试运行我的项目的android版本时出现编译错误.我做了一些研究,发现了这篇文章,并遵循了列出的解决方案这个问题,但 log.txt 仍在发生.
I am currently learning the LibGDX game engine (version 1.9.4) and I keep running into a compiling error when trying to run my android version of my project. I did some research and found this article and followed the solution that was listed on that question but the same issues keep occurring log.txt.
我曾尝试像这样将核心文件直接添加到构建路径,但仍然是相同的问题.
I tried adding the core file directly to the build path like so but still the same issue.
关于错误消息,我是否不了解某些内容?如果是,那是什么?
Is there something I'm not understanding about the error message? If so what is it?
谢谢.
推荐答案
右键单击您的Android项目->属性-> Java构建路径->订购并导出导出您正在使用的所有jar.
Right Click your Android project->Properties->Java Build Path->Order and Exports Export all your jars that you are using.
在Android上运行项目时仍然遇到问题,请检查JRE是否设置为1.6.
still having problem running project on android check if JRE is set to 1.6.
将主Java项目的JRE从1.7更改为1.6,然后尝试在android上运行它.
Change the JRE from the main Java Project from 1.7 to 1.6 and try to run it on android.
Eclipse-> main-java-project->展开目录->右键单击JRE系统库->检查执行环境"->选择JavaES 1.6 jre6->单击OK
Eclipse-> main-java-project--> Expand the directory--> Right click on JRE System library--> Check "Execution environment" --> select JavaES 1.6 jre6-> Click Ok
这篇关于启动Android LibGDX项目时,如何修复NoClassDefFoundError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!