Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find my libGDX version?

Tags:

version

libgdx

I started developing my game few years ago, with big pauses. There was no gradle back then, just simple java installation app. How can I find what is the version of LibGDX used?

like image 817
MilanG Avatar asked Sep 11 '16 18:09

MilanG


People also ask

How do I update LibGDX?

Eclipse: Select all your projects in the package explorer, right click, then click Gradle -> Refresh All . This will download the libGDX version you specified in build. gradle and wire up the JAR files with your projects correctly.

Do you need Android studio for LibGDX?

First, make sure you've got Android Studio installed. If not, just go to https://developer.android.com/studio and download the latest version. Ok, now that we've got Android Studio, we've got to set up our project with LibGDX.

Does LibGDX work with Openjdk?

Strong compatibilityLibgdx is compatible with most platforms and implemented using standard JavaSE. It can run on Mac, Linux, Windows, Android, and IOS platforms. So, LibGDX offers a single API to target: Windows, Linux (including the Raspberry Pi), macOS, Android, iOS, and Web.


2 Answers

Here you go:

Gdx.app.log("Gdx version", com.badlogic.gdx.Version.VERSION);
like image 176
Xoppa Avatar answered Oct 12 '22 17:10

Xoppa


The answer of Xoppa is correct but I find it a very uncomfortable way of checking versions. It would be nice if the LibGDX setup tool and the big website download button showed the version number since currently (as far as I am aware of) the only way to know the version is to create a project first and I find that rather obscure.

A way to know without executing any code is to check the build.gradle file which "should" display the correct version number at line gdxVersion = 'x.x.x'.

like image 30
Madmenyo Avatar answered Oct 12 '22 18:10

Madmenyo