简体   繁体   English

创建新的 libgdx 项目时,如何解决此“Launching Box2DBuild”错误?

[英]How do I solve this 'Launching Box2DBuild' error when creating a new libgdx project?

'Launching Box2DBuild' has encountered a problem. “启动 Box2DBuild”遇到问题。

Launch configuration Box2DBuild references closed project my-gdx-game-core启动配置 Box2DBuild 引用已关闭项目 my-gdx-game-core

在此处输入图像描述

在此处输入图像描述

I don't know why I keep getting this error whenever I try to create a new libgdx project.我不知道为什么每当我尝试创建一个新的 libgdx 项目时,我总是会收到这个错误。

I've included a screenshot of the settings I used to create the project.我已经包含了我用于创建项目的设置的屏幕截图。 Do I need to install Box2D, or does that come pre-installed?我需要安装 Box2D,还是预先安装的?

I'm using Eclipse as my IDE.我使用 Eclipse 作为我的 IDE。

I think I found a solution.我想我找到了解决办法。 If you go in Run Configurations and change the Main Class to the DesktopLauncher, it should run fine.如果您在运行配置中使用 go 并将主 Class 更改为 DesktopLauncher,它应该可以正常运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM