Search code examples
gradleintellij-idealibgdxgame-development

Can't run more than one LibGDX game


I have developed a game with LibGDX library. I am using socket programming libraries as a module in the project.

I am planing that every process of my LibGDX game will be a client for my server. I structured it.

But I can't run more than one game at a time to test multiplayer functionality. When I run the game first, everything is okay, but the second time I click run anything run until the first instance is closed.

I think that's because of Gradle.

I tried to change "Build and run using IntelliJ Idea" from Gradle settings, but this time I had an exception. It cannot read my assets file.

How can I solve this problem?

enter image description here


Solution

  • I have solved it with a Gradle command.

    ./gradlew desktop:run