Exporting A Libgdx Game as Executable Jar from Android Studio

user1804234 picture user1804234 · Aug 31, 2015 · Viewed 8.2k times · Source

Okay so I made a game using Libgdx and I intended it to be a android app(which is why i use android studio) but I want to let my friend without android phones try it out. The project is already setup for both desktop and android so is there any way to export this as a executable jar file?

Answer

TomGrill Games picture TomGrill Games · Aug 31, 2015

Type the command below in the terminal. Remember that you have to be in your LibGDX root directory, before issuing this command.

gradlew desktop:dist

More at: https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline#packaging-for-the-desktop