好吧,我做到了。这是解决方案https://github.com/libgdx/libgdx/wiki/Gradle-and-Intellij-
IDEA#running-your-project
Run -> Edit Configurations...,单击加号(
+)按钮并选择应用程序。
将名称设置为
Desktop。
将字段设置
Use classpath of module为
desktop,然后单击字段的按钮
Mainclass并选择
DesktopLauncher类别。
将设置
Workingdirectory为您
android/assets/(或
your_project_path/core/assets/)文件夹!
单击
Apply,然后单击确定
OK。
现在,您已经为桌面项目创建了运行配置。现在,您可以选择配置并运行它。



