Setting up your Development Environment (Eclipse, Intellij IDEA, NetBeans) - s76/libgdx 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.
Setting up Eclipse
To develop your application via Eclipse, you need to install the following pieces of software. You can find an in depth guide HERE.
- Java Development Kit 7+ (JDK) (6 will not work!)
- Eclipse, the "Eclipse IDE for Java Developers" is usually sufficient.
- Android SDK, you only need the SDK, not the ADT bundle, which includes Eclipse. Install the latest stable platforms via the SDK Manager.
- Android Development Tools for Eclipse, aka ADT Plugin. Use this update site: https://dl-ssl.google.com/android/eclipse/
- Eclipse Integration Gradle, use this update site: http://dist.springsource.com/snapshot/TOOLS/gradle/nightly (for Eclipse 4.4) or http://dist.springsource.com/release/TOOLS/gradle (for Eclipse < 4.4)
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, 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.
- Java Development Kit 7+ (JDK) (6 will not work!)
- Intellij IDEA 14.+, the Community edition is sufficient
- Android SDK, you only need the SDK, not the ADT bundle, which includes Eclipse. Install the latest stable platform via the SDK Manager. You also have to create an environment variable called ANDROID_HOME, which points at your Android SDK installation directory!
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
Setting up NetBeans
To develop your application via NetBeans, you need to install the following pieces of software.
- Java Development Kit 7+ (JDK) (6 will not work!)
- NetBeans 7.3+, the "Java SE" is sufficient
- Android SDK, you only need the SDK, not the ADT bundle, which includes Eclipse. Install the latest stable platform via the SDK Manager. You also have to create an environment variable called ANDROID_HOME, which points at your Android SDK installation directory!
- NBAndroid, use this update center: http://nbandroid.org/updates/updates.xml
- Gradle Support for NetBeans, use the NetBeans IDE Update Center.
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