Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing projects into eclipse only imports Android projects

Tags:

eclipse

libgdx

When I try to import from eclipse,and select root directory -> select the folder where I have all the my-gdx-game-android,html,desktop.. It only imports the android and it shows a message:

Could not set the project description for 'my-gdx-game-android' because the project description file (.project) is out of sync with the file system.

like image 300
George Avatar asked May 21 '13 10:05

George


People also ask

How do I import multiple projects into STS?

If all of your old projects exist in a single directory or in a single parent directory, you can do File -> Import... -> Existing Projects into workspace. Choose a root directory that is a parent all of the projects you want to import. You will then be able to import all of the projects at once.

How do I open an already imported project in Eclipse?

You need to use "File"->"Import"->"General"->"Import Existing Project" to be able to use your existing project.


1 Answers

Make sure when you import your projects that you select Existing Projects into Workspace and not Existing Android Code into Workspace.

If you select the second one, Eclipse will only import Android specific projects. The base project in libgdx is a pure Java project that doesn't rely specifically on Android so it won't be imported using that function. This is also true for your html and desktop projects since they're not Android projects.

like image 56
Michael Celey Avatar answered Sep 28 '22 08:09

Michael Celey