Setting up your Development Environment (Eclipse, Intellij IDEA, NetBeans) - thenewsky/libgdx-ch-document GitHub Wiki

Libgdx projects use Gradle to manage dependencies, the build process, and IDE integration. This allows you to develop your app with whatever development environment you prefer. Best of all: your team mates can use a different dev environment while working on the same project! Just don't commit your IDE specific files to your source control. The .gitignore file contained in libgdx projects will take care of that if you use Git.

Setup for iOS development

Regardless of your development environment of choice, here's what you'll need for iOS:

The RoboVM trial key will be valid for 30 days, so you can start developing immediately. Once you applied for the free indie program, your trial key will be upgraded to a full indie license within 30 days. You will receive an e-mail once that happens.

With your RoboVM indie key you can develop as many games as you want, commercial and non-commercial. The key will be valid forever. If you are a team, just have everyone sign up for a key separately. If your indie team is larger than 3 devs, contact [email protected]. RoboVM just wants to check that you aren't a AAA studio trying to exploit the indie program. Those AAA studios will have to pay for a license, indie teams of any size get licenses for free.

Depending on your development environment, you can activate the key as outlined below. Note: you can only activate your license key on Mac OS X, just like you can only compile for iOS on Mac OS X.

Gradle In your project's root directory, execute the following in the terminal:

./gradlew :activateLicense -Probovm.licenseKey=your-key-here

Eclipse After installing the RoboVM Eclipse plugin, go to RoboVM -> License Manager and enter your key.

IntelliJ IDEA/Android Studio After installing the RoboVM IDEA plugin, go to RoboVM -> License Manager and enter your key.

Setting up Eclipse

To develop your application via Eclipse, you need to install the following pieces of software.

To additionally target iOS

  • A Mac, iOS Development does not work on Windows/Linux thanks to Apple.
  • The latest XCode, which you can get from the Mac OS X App Store for free
  • RoboVM Eclipse plugin, simply install the Eclipse plugin. Make sure to update the plugin frequently!

Once all of these tools are installed, proceed to creating your project

Setting up Intellij IDEA

To develop your application via Intellij IDEA, you need to install the following pieces of software.

To additionally target iOS

Once all of these tools are installed, proceed to creating your project

Setting up Android Studio

To develop your application via Android Studio, you need to install the following pieces of software.

Here is a good tutorial on how to install libGDX using a tool provided by Bad Logic.

To additionally target iOS

Once all of these tools are installed, proceed to creating your project

Setting up NetBeans

To develop your application via NetBeans, you need to install the following pieces of software.

To additionally target iOS

  • A Mac, iOS Development does not work on Windows/Linux thanks to Apple.
  • The latest XCode, which you can get from the Mac OS X App Store for free

Once all of these tools are installed, proceed to creating your project