Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 989
Valdas Vabolis Avatar asked Jan 31 '26 01:01

Valdas Vabolis


1 Answers

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

like image 174
Ari Avatar answered Feb 02 '26 16:02

Ari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!