[英]Trouble generating libgdx project in Eclipse
I'm trying to generate a project using libgdx in eclipse. 我试图在Eclipse中使用libgdx生成项目。 I'm operating on a Crunchbang distribution of Linux, and using a jdk7 version of Java.
我正在使用Linux的Crunchbang发行版,并使用Java的jdk7版本。 No matter what i do to try and please the gdx-setup.jar, i receive this error.
无论我做什么尝试并请gdx-setup.jar,我都会收到此错误。
I end up with: 我最终得到:
"FAILURE: Build failed with an exception. “失败:构建失败,出现异常。
Where: Build file '/home/toastacer01/workspace/build.gradle' line: 64 其中:构建文件“ /home/toastacer01/workspace/build.gradle”行:64
What went wrong: A problem occurred evaluating root project 'workspace'. 出了什么问题:评估根项目“工作区”时发生问题。
com/github/jtakakura/gradle/plugins/robovm/RoboVMPlugin : Unsupported major.minor version 51.0
com / github / jtakakura / gradle / plugins / robovm / RoboVMPlugin:不支持的major.minor版本51.0
Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用--info或--debug选项运行以获取更多日志输出。
BUILD FAILED 建立失败
Total time: 45.379 secs Done! 总时间:45.379秒完成! To import in Eclipse: File -> Import -> General -> Exisiting Projects into Workspace To import to Intellij IDEA: File -> Open -> YourProject.ipr"
要在Eclipse中导入,请执行以下操作:文件->导入->常规->将项目存在到工作区中要导入到Intellij IDEA:文件->打开-> YourProject.ipr”
What am i doing wrong here? 我在这里做错了什么?
检查它是否具有正确的Java版本,大于7更新51(7u51)的版本
Check your jdk 64-bit or 32-bit? 检查您的jdk是64位还是32位? Check your Eclipse also 64 or 32 bits?
检查您的Eclipse还是64位还是32位? Make sure both of them (jdk and Eclipse) should be same version.
确保它们(jdk和Eclipse)都应为同一版本。
OK, I have solved it. 好,我已经解决了。 Go to Eclipse.app/Contents/info.plist.
转到Eclipse.app/Contents/info.plist。 add this
加上这个
<key>Eclipse</key>
<array>
<key>JVMVersion</key>
<string>1.7*</string>
</array>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.