有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中

时间:2021-08-16 10:38:38

I am trying to import a project that me and my co-worker have been working on.. and keep getting this error after I select-- "import" then "import existing project" then click archive file, and then I click next, and this error comes up:

我想导入我和同事一直在做的一个项目。在我选择“导入”然后“导入现有的项目”然后点击归档文件,然后点击下一步,这个错误就出现了:

"Some projects cannot be imported because they already exist in the workspace"

“有些项目不能导入,因为它们已经存在于工作区中”

36 个解决方案

#1


327  

Uncheck the "copy projects into workspace" checkbox, and then click "refresh" button, you will be able to import the project

取消“将项目复制到工作区”复选框,然后单击“refresh”按钮,您将能够导入项目

#2


110  

go to .project file in your project and change the name of the project in name tag

转到项目中的.project文件,并在name标记中更改项目的名称

#3


40  

It has just happened to me too. Finally I realized that the project was already open in my workspace but it was not visible because of the selected working set. You have just to deselect the active working set and all opened projects will become visible.

这也发生在我身上。最后我意识到项目已经在我的工作区中打开了,但是由于所选的工作集而不可见。

#4


20  

You may have a project with same name in your workspace. Try to refresh (file->refresh) your workspace after deleting the another one with same name. A typical situation occurs when you want to re-import a deleted project.

您的工作区中可能有一个名称相同的项目。尝试在删除另一个同名的工作空间后刷新(file->refresh)。当您希望重新导入已删除的项目时,通常会出现这种情况。

#5


12  

Projects in the Eclipse workspace must be unique. Note though that the project name need not be the same as the directory/folder name of the project, so you can either delete any existing project with the same name or alternatively rename the existing projects.

Eclipse工作区中的项目必须是惟一的。注意,项目名称不需要与项目的目录/文件夹名称相同,因此您可以使用相同的名称删除任何现有项目,或者对现有项目进行重命名。

#6


11  

In my case, I copied one of the projects (say 'Project1') from the workspace and pasted it to the same workspace. After that I modified the name of the pasted project (say to 'Project2'). I could not see it in the repository.

在我的例子中,我从工作区中复制了一个项目(比如“Project1”),并将其粘贴到相同的工作区中。之后,我修改了粘贴项目的名称(比如'Project2')。我在存储库中看不到它。

The main reason was .project file from the new project still had: <name>Project1</name> instead of <name>Project2</name>.

主要原因是新项目的.project file仍然有: Project1 而不是 Project2

So, I did following things in order to get the issue fixed:

所以,为了解决这个问题,我做了以下的事情:

  1. Cut and paste Project2 outside the workspace
  2. 在工作区之外剪切和粘贴Project2。
  3. Change .project file to have <name>Project2</name>
  4. 将.project文件更改为 Project2
  5. Try importing Project2 again.
  6. 再次导入Project2。

It worked for me.

它为我工作。

#7


10  

You have one occult directory named ".metadata" in workspace directory. Close Eclipse, delete ".metadata" and open Eclipse. When eclipse ask you about workspace make sure that ".metadata" isn't in workspace directory and click "ok" button to select default workspace.

你有一个叫“”的神秘目录。在工作区目录元数据”。关闭Eclipse,删除”。元数据”并打开Eclipse。当eclipse询问您工作空间时,请确保“。“元数据”不在工作空间目录中,并单击“ok”按钮以选择默认工作空间。

#8


10  

Maybe you get the same project name in your '.project' file,check it,if yes, rename another name.than import again

也许你的项目名称是一样的。项目的文件,检查它,如果是,重命名另一个名字。又比进口

#9


9  

If you've arrived at this because you have cloned a git project into the existing workspace and now you want to promote that workspace to a full fledged project then you should use the 'Git Repositories' view -> select 'Working Directory' -> Import Projects -> Existing projects.

如果您已经实现了这一点,因为您已经将一个git项目克隆到现有的工作空间中,现在您希望将该工作空间提升到一个完整的项目中,那么您应该使用“git仓库”视图—>选择“工作目录”—>导入项目—>现有项目。

#10


8  

This usually happens when you change the project directory physically without first delete in Eclipse. You can view and delete these hidden projects in the following view:

当您在Eclipse中物理地更改项目目录而不首先删除时,通常会发生这种情况。您可以在以下视图中查看和删除这些隐藏项目:

Window -> Show View -> Other -> General -> Navigator

Then simply just continue with the process of import existing project.

然后只需继续导入现有项目的过程。

#11


6  

EASIEST WAY: Right click on the project (folder that reads "MainActivity") go to Refactor -> Rename and you will get a text field allowing you to rename your project.

最简单的方法:右键单击项目(读取“MainActivity”的文件夹),转到Refactor -> Rename,您将得到一个文本字段,允许您重命名项目。

If you get an alert saying your project is out of sync with the filesystem press F5 (refresh) and try again.

如果您收到一个警告,说您的项目与文件系统不同步,请按F5 (refresh)再试一次。

#12


5  

Another way I just found!

我发现了另一种方法!

MOVE the project to some other folder and then import and if required copy to workspace

将项目移动到其他文件夹,然后导入,如果需要,将其复制到工作区

#13


5  

Take a look in your workspace folder, you may have an old project there with the same name as the one you are importing (even though it's not being shown on eclipse).

在您的工作区文件夹中查看一下,您可能有一个旧的项目,其名称与您正在导入的项目相同(即使它在eclipse上没有显示)。

When you delete a project on Eclipse, if you don't check the checkbox on the dialog, it just removes it from the view and doesn't delete the folder on the workspace directory.

当您在Eclipse上删除一个项目时,如果您不选中对话框中的复选框,那么它将从视图中删除,并且不会删除工作区目录中的文件夹。

#14


4  

I had this issue when I deleted a project and tried to import the code again. Eclipse never really deleted the project and still held a reference to the project name/folder in the workspace. I had to created a new project with the same name and my code appeared as it was. I believe this only worked because the project path was never changed.

当我删除一个项目并试图再次导入代码时,我遇到了这个问题。Eclipse从未真正删除该项目,并且仍然对工作区中的项目名称/文件夹进行引用。我必须用相同的名字创建一个新项目,我的代码就这样出现了。我相信这仅仅是因为项目路径没有改变。

#15


4  

Check if you have configured Eclipse to show ALL the working set. I once encountered exactly the same problem and it turned out I accidentally imported the project into the Other Projects working set. And my Eclipse configuration didn't show that working set in the package explorer, which lead me to believe that the project was not imported yet.

检查如果您已经配置了Eclipse显示所有工作集。我曾经遇到同样的问题,结果我不小心项目导入到其他项目工作集,我的Eclipse配置不显示工作集在package explorer,它让我相信这个项目是没有进口。

Updated for @Mawg:

@Mawg更新:

First, click the Select Working Set...:

首先,单击Select Working Set…:

有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中

Then, choose No Working Sets:

然后,选择无工作集:

有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中

This will effectively disable the working set and show all projects.

这将有效地禁用工作集并显示所有项目。

#16


3  

In eclipse click file then select switch workspace then browse and select another folder. Now repeat the same process and this time there will be no error :)

在eclipse中单击file,然后选择switch workspace,然后浏览并选择另一个文件夹。现在重复同样的过程,这次不会出现错误:)

#17


3  

Nothing about could not solve my situation. This is how I solved.

任何事情都不能解决我的处境。我就是这样解出来的。

  1. Close the IDE
  2. 关闭IDE
  3. Remove the same name project form workspace
  4. 删除相同名称的项目表单工作区
  5. Start the IDE
  6. 启动IDE
  7. Clean all project (not sure this helped)
  8. 清理所有项目(不确定这是否有用)
  9. File > Import > Existing Project
  10. 文件>导入>现有项目
  11. click refresh button
  12. 单击刷新按钮
  13. import project
  14. 导入项目

Done..

做. .

#18


3  

This warning means you just deleted project from navigator, but the project is present in the working set. Or else your working set has project with same name, so go to work-space directory and delete the project which has the same name and import again.

这个警告意味着您刚刚从navigator中删除了项目,但是项目在工作集中出现了,否则您的工作集中有同名的项目,所以请转到work-space目录并删除同名的项目并再次导入。

#19


2  

This worked for me.

这为我工作。

File > New > Android Project > Create project from existing source

文件>新的> Android项目>创建项目从现有来源

Location = the location of the project you want to import.

Location =要导入的项目的位置。

You will get a warning "An Eclipse project already exists in this directory. Consider using File > Import > Existing Project instead." But you will be able to click "Next" and the project should in effect be imported.

您将得到一个警告“Eclipse项目已经存在于这个目录中。考虑使用文件>导入>现有项目。但是您将能够单击“Next”,项目实际上应该被导入。

#20


2  

At least on Eclipse Juno, you can toggle on Advanced. Then select [groupid].[artifactid] from the Name Template dropdown. That should make your project uniquely named. (If you keep multiple versions of a given artifact, you can select [groupid].[artifactid].[version] instead). Be sure to click the Refresh button so the changes are visible. Wash, rinse, repeat as needed.

至少在Eclipse Juno上,您可以切换到高级。然后选择[groupid]。[artifactid]来自名称模板下拉。这将使您的项目具有惟一的命名。(如果保留给定工件的多个版本,可以选择[groupid].[artifactid]。【版本】)。确保单击Refresh按钮,这样就可以看到更改了。冲洗,冲洗,重复需要。

#21


2  

delete it from eclipse......u might have closed the project in eclipse by "(Rightclick)-->close project".....so even if you delete this project from workspace folder....it stays there in eclipse IDE as closed project.....you should delete it from Eclipse IDE...!!!

从eclipse……删除它您可能已经在eclipse中关闭了项目“(右击)——>关闭项目”所以即使你从工作区中删除这个项目文件夹....它在eclipse IDE中处于关闭项目的状态……您应该从Eclipse IDE中删除它…!!

#22


2  

I have a slightly different situation whereby my eclipse stops responding and I have had to kill the session. After restarting Juno, then the particular project I was working on disappeared although .project file exists. Trying to import back into Eclipse would yield the same "Some projects cannot be imported .." or "A project with this name already exists" if trying to create a new project.

我有一个稍微不同的情况,我的eclipse停止响应,我不得不终止会话。在重新启动Juno之后,我正在处理的特定项目消失了,尽管.project文件存在。尝试重新导入到Eclipse将产生相同的“某些项目不能导入..”或“已经存在这个名称的项目”(如果尝试创建一个新项目)。

In the end, since I was using Working Sets, I managed to find this file .metadata.plugins\org.eclipse.ui.workbench\workingsets.xml. Manually added the missing entry and restarted eclipse and voila, it came back.

最后,由于我使用了工作集,所以我成功地找到了这个文件。metadata.plugins\org.eclipse.ui.workbench\workingsets.xml。手动添加丢失条目并重新启动eclipse,然后返回。

#23


2  

I had the same error because there was one more project under svn in workspace but with another name. So I've removed it.

我也犯了同样的错误,因为在工作空间中svn下还有一个项目,但是有另一个名字。所以我删除它。

#24


2  

I had a similar problem, I have the same repository I wanted to import twice. I renamed the existing project by right clicking on the project > refactor > rename then imported it again.

我有一个类似的问题,我有相同的存储库,我想要导入两次。我通过右键单击项目>重构>重命名现有项目,然后再次导入它。

#25


2  

This is what i have noticed for the above issue :- If the checkout folder (folder where your pom project resides) is same as the eclipse workspace folder then i am getting this issue

这就是我在上面的问题中注意到的:-如果签出文件夹(您的pom项目所在的文件夹)与eclipse工作区文件夹相同,那么我就会遇到这个问题

SOLUTION

when i used a separate workspace folder for importing the project, eclipse did worked smoothly :)

当我使用一个单独的工作区文件夹来导入项目时,eclipse确实工作得很顺利:)

#26


2  

It was happened to me when

这事发生在我身上。

I delete project from eclipse Project Explorer and not checked the remove content from disk.

我从eclipse project Explorer中删除项目,并没有检查从磁盘中删除的内容。

Next time when I tried to import same project in workspace then got same problem.

下一次,当我尝试在工作区中导入相同的项目时,我遇到了同样的问题。

To solve I just did FYI work that every kid can do :)

为了解决这个问题,我只做了每个孩子都能做的一件事:

So How I solved it:

我是如何解决的:

  1. Cut Ctrl + x myProject folder from eclipse workspace to other location ie Desktop
  2. 将Ctrl + x myProject文件夹从eclipse工作区剪切到其他位置的ie桌面
  3. Right Click Navigator (you can get it from Window > Show View > Navigator) and Refresh (it will prompt following dialog) 有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中
  4. 右键单击Navigator(可以从窗口>显示视图> Navigator)并刷新(它将提示如下对话框)
  5. Just click Yes button and move your project folder back to eclipse workspace directory
  6. 只需单击Yes按钮并将项目文件夹移回eclipse工作区目录
  7. Import again!
  8. 再导入!
  9. Now Rock 'n' Role
  10. 现在摇滚的角色

#27


1  

This problems occurs because you have the same project in some other project folder.As in eclipse we have many project folder, So if you have a project in one folder and you want to import it in other project folder, then this problem occurs. So first of all DELETE the project from other folder and then import in into your current one project FOLDER.

出现这种问题是因为您在其他项目文件夹中有相同的项目。与eclipse中一样,我们有许多项目文件夹,所以如果您在一个文件夹中有一个项目,并且想要将其导入到其他项目文件夹中,那么就会出现这个问题。首先从其他文件夹中删除项目,然后导入到当前的一个项目文件夹中。

#28


1  

New to Eclipse and Android development and this hung me up for quite a while. Here's a few things I was doing wrong that may help someone in the future:

Eclipse和Android开发的新手,这让我很郁闷。以下是我做错的几件事,可能会对未来的人有所帮助:

  1. I was downloading code examples and assuming project name would be the same as the folder name and was looking for that folder name in the project explorer, not finding it, re-importing it, then getting the error message it already existed in the workspace. Yeah. Not proud of that.
  2. 我下载了代码示例,并假设项目名称与文件夹名称相同,并在项目资源管理器中查找该文件夹名称,而不是查找它,重新导入它,然后获取工作空间中已经存在的错误消息。是的。不骄傲。
  3. Didn't click on 'Copy projects into Workspace' and then searched in vain through the workspace when it didn't appear in the project explorer BECAUSE
  4. 没有单击“将项目复制到工作区”,然后在没有出现在project explorer中的工作区内徒劳地搜索
  5. The 'Add project to working sets' option in the Import Projects tab isn't working as far as I can tell, so was not appearing in the project explorer for the active working set (refresh made no difference). Adding project to the working set had to be done after successfully importing it.
  6. 在Import Projects选项卡中的“添加项目到工作集”选项并没有发挥我所能看到的效果,所以在活动工作集的project explorer中没有出现(refresh也没有影响)。在成功导入工作集之后,必须完成添加项目。

#29


1  

I found this after two days of efforts.
It is worth trying.
FAQ

经过两天的努力,我发现了这一点。这值得一试。常见问题解答

#30


1  

It is very simple.

它是非常简单的。

press f2 key to rename project .

按f2键重命名项目。

and import multiple copy of android projects with the same package .

并导入多个android项目的副本,使用相同的包。

#1


327  

Uncheck the "copy projects into workspace" checkbox, and then click "refresh" button, you will be able to import the project

取消“将项目复制到工作区”复选框,然后单击“refresh”按钮,您将能够导入项目

#2


110  

go to .project file in your project and change the name of the project in name tag

转到项目中的.project文件,并在name标记中更改项目的名称

#3


40  

It has just happened to me too. Finally I realized that the project was already open in my workspace but it was not visible because of the selected working set. You have just to deselect the active working set and all opened projects will become visible.

这也发生在我身上。最后我意识到项目已经在我的工作区中打开了,但是由于所选的工作集而不可见。

#4


20  

You may have a project with same name in your workspace. Try to refresh (file->refresh) your workspace after deleting the another one with same name. A typical situation occurs when you want to re-import a deleted project.

您的工作区中可能有一个名称相同的项目。尝试在删除另一个同名的工作空间后刷新(file->refresh)。当您希望重新导入已删除的项目时,通常会出现这种情况。

#5


12  

Projects in the Eclipse workspace must be unique. Note though that the project name need not be the same as the directory/folder name of the project, so you can either delete any existing project with the same name or alternatively rename the existing projects.

Eclipse工作区中的项目必须是惟一的。注意,项目名称不需要与项目的目录/文件夹名称相同,因此您可以使用相同的名称删除任何现有项目,或者对现有项目进行重命名。

#6


11  

In my case, I copied one of the projects (say 'Project1') from the workspace and pasted it to the same workspace. After that I modified the name of the pasted project (say to 'Project2'). I could not see it in the repository.

在我的例子中,我从工作区中复制了一个项目(比如“Project1”),并将其粘贴到相同的工作区中。之后,我修改了粘贴项目的名称(比如'Project2')。我在存储库中看不到它。

The main reason was .project file from the new project still had: <name>Project1</name> instead of <name>Project2</name>.

主要原因是新项目的.project file仍然有: Project1 而不是 Project2

So, I did following things in order to get the issue fixed:

所以,为了解决这个问题,我做了以下的事情:

  1. Cut and paste Project2 outside the workspace
  2. 在工作区之外剪切和粘贴Project2。
  3. Change .project file to have <name>Project2</name>
  4. 将.project文件更改为 Project2
  5. Try importing Project2 again.
  6. 再次导入Project2。

It worked for me.

它为我工作。

#7


10  

You have one occult directory named ".metadata" in workspace directory. Close Eclipse, delete ".metadata" and open Eclipse. When eclipse ask you about workspace make sure that ".metadata" isn't in workspace directory and click "ok" button to select default workspace.

你有一个叫“”的神秘目录。在工作区目录元数据”。关闭Eclipse,删除”。元数据”并打开Eclipse。当eclipse询问您工作空间时,请确保“。“元数据”不在工作空间目录中,并单击“ok”按钮以选择默认工作空间。

#8


10  

Maybe you get the same project name in your '.project' file,check it,if yes, rename another name.than import again

也许你的项目名称是一样的。项目的文件,检查它,如果是,重命名另一个名字。又比进口

#9


9  

If you've arrived at this because you have cloned a git project into the existing workspace and now you want to promote that workspace to a full fledged project then you should use the 'Git Repositories' view -> select 'Working Directory' -> Import Projects -> Existing projects.

如果您已经实现了这一点,因为您已经将一个git项目克隆到现有的工作空间中,现在您希望将该工作空间提升到一个完整的项目中,那么您应该使用“git仓库”视图—>选择“工作目录”—>导入项目—>现有项目。

#10


8  

This usually happens when you change the project directory physically without first delete in Eclipse. You can view and delete these hidden projects in the following view:

当您在Eclipse中物理地更改项目目录而不首先删除时,通常会发生这种情况。您可以在以下视图中查看和删除这些隐藏项目:

Window -> Show View -> Other -> General -> Navigator

Then simply just continue with the process of import existing project.

然后只需继续导入现有项目的过程。

#11


6  

EASIEST WAY: Right click on the project (folder that reads "MainActivity") go to Refactor -> Rename and you will get a text field allowing you to rename your project.

最简单的方法:右键单击项目(读取“MainActivity”的文件夹),转到Refactor -> Rename,您将得到一个文本字段,允许您重命名项目。

If you get an alert saying your project is out of sync with the filesystem press F5 (refresh) and try again.

如果您收到一个警告,说您的项目与文件系统不同步,请按F5 (refresh)再试一次。

#12


5  

Another way I just found!

我发现了另一种方法!

MOVE the project to some other folder and then import and if required copy to workspace

将项目移动到其他文件夹,然后导入,如果需要,将其复制到工作区

#13


5  

Take a look in your workspace folder, you may have an old project there with the same name as the one you are importing (even though it's not being shown on eclipse).

在您的工作区文件夹中查看一下,您可能有一个旧的项目,其名称与您正在导入的项目相同(即使它在eclipse上没有显示)。

When you delete a project on Eclipse, if you don't check the checkbox on the dialog, it just removes it from the view and doesn't delete the folder on the workspace directory.

当您在Eclipse上删除一个项目时,如果您不选中对话框中的复选框,那么它将从视图中删除,并且不会删除工作区目录中的文件夹。

#14


4  

I had this issue when I deleted a project and tried to import the code again. Eclipse never really deleted the project and still held a reference to the project name/folder in the workspace. I had to created a new project with the same name and my code appeared as it was. I believe this only worked because the project path was never changed.

当我删除一个项目并试图再次导入代码时,我遇到了这个问题。Eclipse从未真正删除该项目,并且仍然对工作区中的项目名称/文件夹进行引用。我必须用相同的名字创建一个新项目,我的代码就这样出现了。我相信这仅仅是因为项目路径没有改变。

#15


4  

Check if you have configured Eclipse to show ALL the working set. I once encountered exactly the same problem and it turned out I accidentally imported the project into the Other Projects working set. And my Eclipse configuration didn't show that working set in the package explorer, which lead me to believe that the project was not imported yet.

检查如果您已经配置了Eclipse显示所有工作集。我曾经遇到同样的问题,结果我不小心项目导入到其他项目工作集,我的Eclipse配置不显示工作集在package explorer,它让我相信这个项目是没有进口。

Updated for @Mawg:

@Mawg更新:

First, click the Select Working Set...:

首先,单击Select Working Set…:

有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中

Then, choose No Working Sets:

然后,选择无工作集:

有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中

This will effectively disable the working set and show all projects.

这将有效地禁用工作集并显示所有项目。

#16


3  

In eclipse click file then select switch workspace then browse and select another folder. Now repeat the same process and this time there will be no error :)

在eclipse中单击file,然后选择switch workspace,然后浏览并选择另一个文件夹。现在重复同样的过程,这次不会出现错误:)

#17


3  

Nothing about could not solve my situation. This is how I solved.

任何事情都不能解决我的处境。我就是这样解出来的。

  1. Close the IDE
  2. 关闭IDE
  3. Remove the same name project form workspace
  4. 删除相同名称的项目表单工作区
  5. Start the IDE
  6. 启动IDE
  7. Clean all project (not sure this helped)
  8. 清理所有项目(不确定这是否有用)
  9. File > Import > Existing Project
  10. 文件>导入>现有项目
  11. click refresh button
  12. 单击刷新按钮
  13. import project
  14. 导入项目

Done..

做. .

#18


3  

This warning means you just deleted project from navigator, but the project is present in the working set. Or else your working set has project with same name, so go to work-space directory and delete the project which has the same name and import again.

这个警告意味着您刚刚从navigator中删除了项目,但是项目在工作集中出现了,否则您的工作集中有同名的项目,所以请转到work-space目录并删除同名的项目并再次导入。

#19


2  

This worked for me.

这为我工作。

File > New > Android Project > Create project from existing source

文件>新的> Android项目>创建项目从现有来源

Location = the location of the project you want to import.

Location =要导入的项目的位置。

You will get a warning "An Eclipse project already exists in this directory. Consider using File > Import > Existing Project instead." But you will be able to click "Next" and the project should in effect be imported.

您将得到一个警告“Eclipse项目已经存在于这个目录中。考虑使用文件>导入>现有项目。但是您将能够单击“Next”,项目实际上应该被导入。

#20


2  

At least on Eclipse Juno, you can toggle on Advanced. Then select [groupid].[artifactid] from the Name Template dropdown. That should make your project uniquely named. (If you keep multiple versions of a given artifact, you can select [groupid].[artifactid].[version] instead). Be sure to click the Refresh button so the changes are visible. Wash, rinse, repeat as needed.

至少在Eclipse Juno上,您可以切换到高级。然后选择[groupid]。[artifactid]来自名称模板下拉。这将使您的项目具有惟一的命名。(如果保留给定工件的多个版本,可以选择[groupid].[artifactid]。【版本】)。确保单击Refresh按钮,这样就可以看到更改了。冲洗,冲洗,重复需要。

#21


2  

delete it from eclipse......u might have closed the project in eclipse by "(Rightclick)-->close project".....so even if you delete this project from workspace folder....it stays there in eclipse IDE as closed project.....you should delete it from Eclipse IDE...!!!

从eclipse……删除它您可能已经在eclipse中关闭了项目“(右击)——>关闭项目”所以即使你从工作区中删除这个项目文件夹....它在eclipse IDE中处于关闭项目的状态……您应该从Eclipse IDE中删除它…!!

#22


2  

I have a slightly different situation whereby my eclipse stops responding and I have had to kill the session. After restarting Juno, then the particular project I was working on disappeared although .project file exists. Trying to import back into Eclipse would yield the same "Some projects cannot be imported .." or "A project with this name already exists" if trying to create a new project.

我有一个稍微不同的情况,我的eclipse停止响应,我不得不终止会话。在重新启动Juno之后,我正在处理的特定项目消失了,尽管.project文件存在。尝试重新导入到Eclipse将产生相同的“某些项目不能导入..”或“已经存在这个名称的项目”(如果尝试创建一个新项目)。

In the end, since I was using Working Sets, I managed to find this file .metadata.plugins\org.eclipse.ui.workbench\workingsets.xml. Manually added the missing entry and restarted eclipse and voila, it came back.

最后,由于我使用了工作集,所以我成功地找到了这个文件。metadata.plugins\org.eclipse.ui.workbench\workingsets.xml。手动添加丢失条目并重新启动eclipse,然后返回。

#23


2  

I had the same error because there was one more project under svn in workspace but with another name. So I've removed it.

我也犯了同样的错误,因为在工作空间中svn下还有一个项目,但是有另一个名字。所以我删除它。

#24


2  

I had a similar problem, I have the same repository I wanted to import twice. I renamed the existing project by right clicking on the project > refactor > rename then imported it again.

我有一个类似的问题,我有相同的存储库,我想要导入两次。我通过右键单击项目>重构>重命名现有项目,然后再次导入它。

#25


2  

This is what i have noticed for the above issue :- If the checkout folder (folder where your pom project resides) is same as the eclipse workspace folder then i am getting this issue

这就是我在上面的问题中注意到的:-如果签出文件夹(您的pom项目所在的文件夹)与eclipse工作区文件夹相同,那么我就会遇到这个问题

SOLUTION

when i used a separate workspace folder for importing the project, eclipse did worked smoothly :)

当我使用一个单独的工作区文件夹来导入项目时,eclipse确实工作得很顺利:)

#26


2  

It was happened to me when

这事发生在我身上。

I delete project from eclipse Project Explorer and not checked the remove content from disk.

我从eclipse project Explorer中删除项目,并没有检查从磁盘中删除的内容。

Next time when I tried to import same project in workspace then got same problem.

下一次,当我尝试在工作区中导入相同的项目时,我遇到了同样的问题。

To solve I just did FYI work that every kid can do :)

为了解决这个问题,我只做了每个孩子都能做的一件事:

So How I solved it:

我是如何解决的:

  1. Cut Ctrl + x myProject folder from eclipse workspace to other location ie Desktop
  2. 将Ctrl + x myProject文件夹从eclipse工作区剪切到其他位置的ie桌面
  3. Right Click Navigator (you can get it from Window > Show View > Navigator) and Refresh (it will prompt following dialog) 有些项目无法导入,因为它们已经存在于Eclipse的工作区错误中
  4. 右键单击Navigator(可以从窗口>显示视图> Navigator)并刷新(它将提示如下对话框)
  5. Just click Yes button and move your project folder back to eclipse workspace directory
  6. 只需单击Yes按钮并将项目文件夹移回eclipse工作区目录
  7. Import again!
  8. 再导入!
  9. Now Rock 'n' Role
  10. 现在摇滚的角色

#27


1  

This problems occurs because you have the same project in some other project folder.As in eclipse we have many project folder, So if you have a project in one folder and you want to import it in other project folder, then this problem occurs. So first of all DELETE the project from other folder and then import in into your current one project FOLDER.

出现这种问题是因为您在其他项目文件夹中有相同的项目。与eclipse中一样,我们有许多项目文件夹,所以如果您在一个文件夹中有一个项目,并且想要将其导入到其他项目文件夹中,那么就会出现这个问题。首先从其他文件夹中删除项目,然后导入到当前的一个项目文件夹中。

#28


1  

New to Eclipse and Android development and this hung me up for quite a while. Here's a few things I was doing wrong that may help someone in the future:

Eclipse和Android开发的新手,这让我很郁闷。以下是我做错的几件事,可能会对未来的人有所帮助:

  1. I was downloading code examples and assuming project name would be the same as the folder name and was looking for that folder name in the project explorer, not finding it, re-importing it, then getting the error message it already existed in the workspace. Yeah. Not proud of that.
  2. 我下载了代码示例,并假设项目名称与文件夹名称相同,并在项目资源管理器中查找该文件夹名称,而不是查找它,重新导入它,然后获取工作空间中已经存在的错误消息。是的。不骄傲。
  3. Didn't click on 'Copy projects into Workspace' and then searched in vain through the workspace when it didn't appear in the project explorer BECAUSE
  4. 没有单击“将项目复制到工作区”,然后在没有出现在project explorer中的工作区内徒劳地搜索
  5. The 'Add project to working sets' option in the Import Projects tab isn't working as far as I can tell, so was not appearing in the project explorer for the active working set (refresh made no difference). Adding project to the working set had to be done after successfully importing it.
  6. 在Import Projects选项卡中的“添加项目到工作集”选项并没有发挥我所能看到的效果,所以在活动工作集的project explorer中没有出现(refresh也没有影响)。在成功导入工作集之后,必须完成添加项目。

#29


1  

I found this after two days of efforts.
It is worth trying.
FAQ

经过两天的努力,我发现了这一点。这值得一试。常见问题解答

#30


1  

It is very simple.

它是非常简单的。

press f2 key to rename project .

按f2键重命名项目。

and import multiple copy of android projects with the same package .

并导入多个android项目的副本,使用相同的包。