Valdas Vabolis
Valdas Vabolis

Reputation: 59

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?

Upvotes: 3

Views: 3281

Answers (1)

Ari
Ari

Reputation: 1470

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

Upvotes: 7

Related Questions