web-dev-qa-db-fra.com

Eclipse - Importer un projet existant?

J'ai un projet que j'essaie d'ajouter à mon espace de travail. Mais Eclipse ne peut pas détecter un nouveau projet dans le répertoire que je pointe.

Comment puis-je informer Eclipse qu'un répertoire spécifique contient un projet?

Mon répertoire contient:

  • les atouts
  • libs
  • res
  • src
  • poubelle
  • gen
  • AndoridManijest.xml
  • proguard.cfg
  • project.properties
17
aryaxt

Vous devez simplement faire un projet-> Projet existant dans Workspace, puis rechercher l'emplacement où se trouvent les fichiers .classpath et .project pour votre projet.

13
FUD

Pour les nouvelles versions d'Eclipse, il s'agit de File > Import > General > Existing projects into workspace

8
Nav

Comme ça 

   Importing existing projects
    You can use the Import Wizard to  command link import an existing project into workspace.

    From the main menu bar, select  command link File > Import.... The Import wizard opens.
    Select General > Existing Project into Workspace and click Next.
    Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
    Under Projects select the project or projects which you would like to import.
    Click Finish to start the import.
1
Joolah

Cette solution est pour Eclipse

J'avais un problème similaire lorsque je clonais des référentiels à partir d'un compartiment à partir de la ligne de commande, cela clonait dans le référentiel local. La solution ci-dessus n'a donc pas fonctionné, car elle indiquerait que les fichiers se trouvent déjà dans le référentiel local.

La solution:

1. Window > Show View > other > Git repositories
2. Right Click on the git repository tab > import projects
3. navigate to the repository you want to put into Eclipse
4. select the third option 'import as general project', if selecting this does not work then view other options and select the option that applies to you
5. finish
0
QQQ

si vous ne pouvez pas importer un projet comme dans la solution ci-dessus, vous devez créer un nouveau projet portant le nom de projet tel que le projet que vous souhaitez importer. N'oubliez pas de placer votre projet d'importation sur le poste de travail.

0
mr_sudo