Jorge
Jorge

Reputation: 1730

Using libgdx with Android Studio

According to libgdx wiki (http://goo.gl/fJgSab):

Android Studio is fully compatible with libGDX's Gradle based build system.

How exactly should one proceed to import the Android project generated by libgdx into Android Studio?

Upvotes: 0

Views: 2744

Answers (2)

Sanchit
Sanchit

Reputation: 460

If you have created the project using libGDX gradle build system, you will have a file build.gradle in the root directory. Just open Android studio and import project and select this file. It will automatically fetch required resources and create your project structure in Studio.

Upvotes: 2

Zyion
Zyion

Reputation: 191

You just need to import your gradle project into Android Studio

Migrating from Eclipse

Import into Android Studio

  1. In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
  2. Click Import Project.
  3. Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
  4. In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)

I would also like to recommend using IntelliJ for libgdx over Android Studio as IntelliJ will allow you to work on Desktop and Html versions of you project as well.

Upvotes: 0

Related Questions