Valdas Vabolis Valdas Vabolis - 1 year ago 136
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
Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download