Valdas Vabolis Valdas Vabolis - 6 months ago 67
Java Question

How to make LibGDX + Android Studio jar file?

I can't find a way to create an Android Studio jar file for Desktop. I am using Android Studio 1.3.2 and LibGDX library. I created a video game and I want to share it with other PC's without having to install Android Studio to run my project.

What should I do?

Ari Ari

If you still have got a build.gradle file for the desktop configuration, execute the "dist" build configuration via gradle. As a result, a runnable jar file will be created.

If you do not know how to achieve this in Android Studio, this can be easily done from the command prompt:

  • swich to your projects directory

  • ./gradlew desktop:dist