Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
853 views
in Technique[技术] by (71.8m points)

android - Opening LibGDX project in Eclipse (ADT Bundle)

Currently using ADT Bundle for Windows for developing Android applications.
It has built-in a Eclipse IDE, and is easy and ready to use. (Just extract the .zip, no installing required)

However, I want to develop a libGDX project using that Eclipse IDE.
I have successfully generated a libGDX project using gdx-setup.jar.
To import this generated project to Eclipse, this libGDX wiki says that in Eclipse IDE I should go to

File -> Import -> Gradle -> Gradle Project

But I don't find any Gradle in the Import window, here's the screenshot:

There's no "Gradle"

I tried importing it using Existing Android Code Into Workspace. But it has multiple errors.

I also found the Eclipse Integration Gradle and Spring Tool Suite
I can't figure out how they works and how to install them.
Please tell me how can I install those plugins.
If there's a step-by-step guide to develop a libGDX project in Eclipse IDE (ADT Bundle), that would be great.
Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

what you're looking for is the Eclipse Gradle Integration Tool which you can add to Eclipse as a module.

To do this, you must go to Help -> Install New Software -> Add -> specify name such as 'Gradle', and add the following location: http://dist.springsource.com/release/TOOLS/gradle

This will install Gradle integration module into your ADT, and you'll be able to import the project.

A tutorial that I liked by the way on LibGDX was the following: http://www.gamefromscratch.com/page/LibGDX-Tutorial-series.aspx

EDIT: The new ADT 23.0.2 does not allow installing it directly, you need to go to Help -> Install New Software -> Work With -> Juno -> General Purpose Tools -> Marketplace Client, and then search for Gradle and add the Gradle Integration tool (not the 4.4 one).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...