当从现有源创建新项目时,Eclipse“无效项目描述”

时间:2023-01-19 07:44:28

I am trying to create a new project from existing source code. I keep getting the following error: "Invalid Project Description", project path "overlaps the location of another project" with the same name. The reason is that I created that project from the source code before, but then I deleted that project and deleted its whole directory, before adding the source code directory again. I tried everything like cleaning and restarting, but nothing worked. I looked in my workspace directory, but there are no traces for the old project. There are several questions around this problem such as this Attempting Android Notepad Tutorial - Exercise 1 - More problems, but none of the answers worked for me!

我正在尝试从现有的源代码创建一个新项目。我不断得到以下错误:“无效项目描述”,项目路径“重叠另一个项目的位置”,名称相同。原因是我之前从源代码中创建了这个项目,但是之后我删除了这个项目并删除了它的整个目录,然后再添加源代码目录。我试过了所有的方法,比如打扫和重新开始,但都没有用。我查看了我的工作空间目录,但是没有对旧项目的跟踪。关于这个问题有几个问题,比如这个尝试Android Notepad教程——练习1——还有更多的问题,但是没有一个答案对我有用!

21 个解决方案

#1


331  

Go into your workspace, and move your project source code folder to another area outside of your workspace (like the desktop). Make sure the project is deleted in eclipse, then create a new project from source from that directory.

进入您的工作区,并将项目源代码文件夹移动到工作区之外的另一个区域(如桌面)。确保在eclipse中删除了项目,然后从该目录中创建一个新项目。

Another thing you could do is try creating a project of a different name (from the first project's source), so that the workspace will contain the new project as a functional project. Then, go into your workspace directory and absolutely delete the folder that contained the original project, or move it. Try loading the project from source again, this time using the second project, by naming it with the correct name. Or, you could try refactoring the second project back to the first's name.

您可以做的另一件事是尝试创建一个不同名称的项目(来自第一个项目的源代码),以便工作区将新项目作为一个功能项目来包含。然后,进入工作区目录并删除包含原始项目的文件夹,或者移动它。尝试再次从源加载项目,这一次使用第二个项目,用正确的名称命名它。或者,您可以尝试将第二个项目重构为第一个项目的名称。

#2


132  

I have struggled with this issue myself for a while and I think the reason it happens is because (for Android) there are two ways to import projects into the workspace

我自己也在这个问题上挣扎了一段时间,我认为发生这种情况的原因是(对于Android)有两种方法可以将项目导入到工作空间中

1) File>Import>General>Existing Project into Workspace
2) File>Import>Android>Existing Code into Workspace

1)文件>导入>通用>现有项目到工作空间2)文件>导入>Android>现有代码到工作空间

The errors described here are related to method 2).

这里描述的错误与方法2有关。

For method 1) there will be no overlap problems as long as you uncheck the "Copy Projects into Workspace" box if the project is already in the workspace.

对于方法1)如果项目已经在工作区中,那么只要取消“将项目复制到工作区”框,就不会出现重叠问题。

Edit: There is a third method that wasn't in my original post.

编辑:还有第三种方法没有出现在我最初的文章中。

3) File >New>Other>Android>Existing Android Project into Workspace

3)将>新>其他>Android>现有Android项目文件到工作区内

#3


39  

Instead of import from Android -> Existing Android Code Into Workspace, You must use General->Existing projects into workspace. It's probably a solution.

而不是从Android ->现有的Android代码导入到工作区中,您必须使用通用->现有的项目到工作空间中。可能是一个解决方案。

#4


7  

Today I accidentally solved the issue:

今天我意外地解决了这个问题:

Below 2 steps may not be involved but not sure:

  1. Call from (Eclipse menu)* "/Window/Android SDK Manager" and update a) "Android SDK Tools" b) "Android SDK Platform-tools" packages
  2. 调用(Eclipse菜单)*“/Window/Android SDK管理器”并更新a)“Android SDK工具”b)“Android SDK平台工具”包
  3. Call from Eclipse menu "/Help/Check for Updates" and update Eclipse. Restart Eclipse.
  4. 从Eclipse菜单中调用“/Help/Check for update”并更新Eclipse。重新启动Eclipse。

Steps below are necessary:

  1. From eclipse menu "/File/Import/Android/Existing Android Code Into Workspace"
  2. 从eclipse菜单“/File/Import/Android/现有Android代码到工作区”
  3. Browse and select problematic project/or problematic projectS parent directory.
  4. 浏览并选择有问题的项目/或有问题的项目父目录。
  5. Check "Copy projects into workspace".
  6. 检查“将项目复制到工作区”。
  7. Check "Add projects into working sets".
  8. 检查“将项目添加到工作集中”。
  9. Press finish.

    按finish。

  10. [Optional scenario]: If project(s) and their containing folders have been renamed with the fully qualified package names then simply click on project node parent (where you see project package name instead of project's old name) in Eclipse and rename project with old name. Eclipse will rename folder too.

    [可选场景]:如果项目及其包含的文件夹已经用完全限定的包名重命名,那么只需在Eclipse中单击项目节点父节点(您在其中看到的是项目包名而不是项目的旧名),并以旧名重命名项目。Eclipse也将重命名文件夹。

P.S. Tested on Eclipse Juno.

P.S.在Eclipse Juno上测试。

Edit: Many times have passed since this answer and new Eclipse and Android SDK arrived. They have no much more problems during importing existing projects. The only thing one has to consider before importing is to move project folders(those ones one is willing to import) outside of eclipse workspace dir and then check checkboxes ("copy projects into working sets", "add projects into wokring sets") in import wizard dialog. Also I recommend doing this with latest Android SDK because it no more imports projects with dummy names and does not rename folders as it did in some custom cases.

编辑:这个答案发布后,新的Eclipse和Android SDK已经出现了很多次。在导入现有项目时,他们没有更多的问题。在导入之前,您需要考虑的唯一一件事是将项目文件夹(那些您愿意导入的文件夹)移到eclipse workspace dir之外,然后在导入向导对话框中选中复选框(“将项目复制到工作集”、“将项目添加到wokring集”)。我还建议使用最新的Android SDK来实现这一点,因为它不再导入带有虚拟名称的项目,也不像在某些定制案例中那样重命名文件夹。

#5


4  

I have been banging my head against the wall with a similar problem. The only thing that helped is following the steps in this post.

我一直在用同样的问题撞墙。唯一有帮助的是遵循本文中的步骤。

#6


4  

This problem drives me crazy as well but I know what the cause of it is. The problem is that eclipse is not smart enough to create a folder with the same name of your project within your workspace folder if it is custom.

这个问题也让我抓狂,但我知道它的原因。问题是,如果eclipse是自定义的,那么它还不够聪明,无法在工作区文件夹中创建与项目同名的文件夹。

The way to solve this is to make sure all of your projects are in a folder with the name that matches your Project Name, otherwise it will dump all of your project files straight into the directory. The reason why you end up seeing that error is because it thinks you are putting a project inside another project (probably reads the project config file).

解决此问题的方法是确保所有项目都位于与项目名称匹配的文件夹中,否则它将直接将所有项目文件转储到目录中。您最终看到这个错误的原因是,它认为您正在将一个项目放入另一个项目中(可能是读取项目配置文件)。

I noticed this is especially a problem when not using the default workspace path. The way I solve this problem is to just add the Project Name to the end of location. So let's say you are putting a project named "HelloWorld" into /Users/name/Documents/projects/android/, you would want to manually add "HelloWorld" to the end of it, like this: /Users/name/Documents/projects/android/HelloWorld. This would ensure that the project is put in it's own folder called "HelloWorld" and not inside some other project. Be sure that if there are any projects not within folders into a folder of the same name as the project to solve the errors.

我注意到,如果不使用默认的工作区路径,这是一个特别的问题。我解决这个问题的方法是将项目名添加到位置的末尾。假设您将一个名为“HelloWorld”的项目放入/Users/name/ document /projects/android/ android/,您需要手动添加“HelloWorld”,比如:/Users/name/Documents/projects/android/HelloWorld。这将确保项目被放在它自己的名为“HelloWorld”的文件夹中,而不是在其他项目中。请确保,如果有任何项目不在文件夹内,则将其放入与项目相同的文件夹中,以解决错误。

#7


4  

I solved this problem with using the following steps:

我用以下步骤解决了这个问题:

1) File -> Import
2) Click General then select Existing Projects into Workspace
3) Click Next
4) Browse the directory of the project

Click Finish!

单击Finish。

It worked for me

它为我工作

#8


2  

  1. Copy the code you want somewhere outside your workspace folder
  2. 将您想要的代码复制到工作区文件夹之外的某个地方
  3. Create a new project using existing code from that folder
  4. 使用该文件夹中的现有代码创建一个新项目
  5. Once the project is created, right click on it and Refactor > Move it into the Workspace folder. (use default location)
  6. 一旦创建了项目,右键单击它,并重构>将其移动到工作区文件夹中。(使用默认位置)

#9


2  

I solved this problem with using the following steps:

我用以下步骤解决了这个问题:

  1. File -> Import

    文件- >导入

  2. Click General then select Existing Projects into Workspace

    单击General,然后在工作区中选择现有项目

  3. Click Next

    单击Next

  4. Browse the directory of the project

    浏览项目的目录

  5. Click Finish!

    单击Finish。

It worked for me

它为我工作

#10


1  

Here is what I did that worked great. I just imported an existing project under general instead of importing an android project.

这是我做的非常棒的事情。我只是导入了一个通用的现有项目,而不是导入一个android项目。

#11


0  

What operating system are you using? I use Linux Mint. In my case it turned out to be a symbolic link issue. Every time I tried to create the project with the symlink path, it would give me that error. Creating the project elsewhere, and then migrating it to the symlinked directory solved it for me.

您正在使用什么操作系统?我使用Linux Mint。在我看来,这是一个象征性的链接问题。每当我尝试用symlink路径创建项目时,它都会给我那个错误。在其他地方创建项目,然后将其迁移到symlinked directory,为我解决了这个问题。

#12


0  

The easiest way to solve this problem is just to move your`s project to another folder and import it. This is because you have already had this project(or project with the same name) in that folder. And when you delete project, eclipse still retains a reference to it

解决这个问题最简单的方法就是将项目移到另一个文件夹并导入它。这是因为您已经在该文件夹中有了这个项目(或同名项目)。当您删除项目时,eclipse仍然保留对它的引用

#13


0  

Suppose you have something like:

假设你有:


/prj/workspace/prj1
/prj/workspace/prj2


And your eclipse workspace is in /prj/workspace level (i.e. /prj/workspace/.metadata). If you're having problem importing prj1 and prj2, you can either move your .metadata somewhere else (/prj/.metadata, /prj/eclipse/.metadata, etc.) or create a sub level in workspace so that it looks like:
/prj/workspace/android/prj1
/prj/workspace/android/prj2


And import prj1 and prj2 again. In another word: as long as prj1, prj2, and .metadata are not in the same level it will be fine.

#14


0  

I've been having this problem in Linux, with a project that I renamed, removed, and reimported. Somewhere in the .metadata, it's still there evidently.

我在Linux中遇到了这个问题,我重命名、删除并重新导入了一个项目。在元数据的某个地方,它显然仍然存在。

I finally solved it by the following steps:

我最终通过以下步骤解决了这个问题:

close Eclipse
mv .metadata .metadata_orig
start Eclipse
reset default workspace
reimport projects

This may not work for everyone, especially if you already have lots of projects in multiple workspaces. But if you're used to reconfiguring Eclipse (which I do every time I upgrade to the next Eclipse release) it's not too bad.

这可能并不适用于所有人,尤其是当您已经在多个工作空间中有许多项目时。但是,如果您习惯于重新配置Eclipse(每次升级到下一个Eclipse发行版时我都会这么做),那就还不错。

#15


0  

This option fixed my issue.

这个选项解决了我的问题。

Link : http://fledglingsnook.wordpress.com/2012/08/09/eclipse-issue-overlaps-the-location-of-another-project/

链接:http://fledglingsnook.wordpress.com/2012/08/09/eclipse-issue-overlaps-the-location-of-another-project/

#16


0  

paste the project source and support libs to any other newly created folder and try to import from there. It worked for me.

将项目源粘贴到其他新创建的文件夹,并尝试从那里导入。它为我工作。

#17


0  

Copy the project into your workspace, create new Android Application Project with the same name from eclipse file->new->project and voila.

将项目复制到您的工作空间中,创建新的Android应用程序项目,该项目的名称与eclipse文件->新>项目相同。

#18


0  

Go to the .project file of your project make sure it display the same name as displayed in project folder. if not change the name. it will work.

转到项目的.project文件,确保它显示的名称与项目文件夹中显示的相同。如果不改名字的话。它将工作。

#19


0  

There are a variety of scenarios, but, in my case, I wanted to retain the folder and it's contents, as it had been checked out from .git. However, I needed to be able to modify the source and other stuff using Eclipse.

有各种各样的场景,但是在我的例子中,我希望保留文件夹和它的内容,因为它是从.git检出的。但是,我需要能够使用Eclipse修改源代码和其他内容。

I found the problem was that the .cproject and .project files had path information that was very environment specific (and did not match my environment).

我发现问题是.cproject和.project文件的路径信息非常特定于环境(并且与我的环境不匹配)。

What I did was this:

我所做的是:

  1. Created a new empty folder(with a different name) and created a new workspace pointing to that folder.
  2. 创建一个新的空文件夹(使用不同的名称)并创建一个指向该文件夹的新工作区。
  3. Checked out or copied the .git project/folder into the empty folder.
  4. 签出或将.git项目/文件夹复制到空文件夹中。
  5. Then imported, General, Existing projects in Workspace.
  6. 然后导入,一般,工作区中的现有项目。

The key seemed to be creating the top level empty work space with a different name.

关键似乎是用不同的名字创建顶层的空工作空间。

I hope this helps someone.

我希望这能帮助某人。

#20


0  

If you wish to open a new project from an existing source code in the following way:

如果您希望从现有的源代码中以以下方式打开一个新项目:

File -> Import -> General -> Existing Project into Workspace

you still have the message "Invalid Project Description". I solve it just by going in

您仍然有“无效项目描述”的消息。我只要进去就能解出来

File -> Switch Workspace

and choosing one of the recent workspaces.

选择一个最近的工作空间。

#21


0  

I got rid of my issue by changing File > Workspace and then, after the restart, reset the Workspace again.

通过更改文件>工作区,我消除了这个问题,然后在重新启动之后,重新设置工作区。

#1


331  

Go into your workspace, and move your project source code folder to another area outside of your workspace (like the desktop). Make sure the project is deleted in eclipse, then create a new project from source from that directory.

进入您的工作区,并将项目源代码文件夹移动到工作区之外的另一个区域(如桌面)。确保在eclipse中删除了项目,然后从该目录中创建一个新项目。

Another thing you could do is try creating a project of a different name (from the first project's source), so that the workspace will contain the new project as a functional project. Then, go into your workspace directory and absolutely delete the folder that contained the original project, or move it. Try loading the project from source again, this time using the second project, by naming it with the correct name. Or, you could try refactoring the second project back to the first's name.

您可以做的另一件事是尝试创建一个不同名称的项目(来自第一个项目的源代码),以便工作区将新项目作为一个功能项目来包含。然后,进入工作区目录并删除包含原始项目的文件夹,或者移动它。尝试再次从源加载项目,这一次使用第二个项目,用正确的名称命名它。或者,您可以尝试将第二个项目重构为第一个项目的名称。

#2


132  

I have struggled with this issue myself for a while and I think the reason it happens is because (for Android) there are two ways to import projects into the workspace

我自己也在这个问题上挣扎了一段时间,我认为发生这种情况的原因是(对于Android)有两种方法可以将项目导入到工作空间中

1) File>Import>General>Existing Project into Workspace
2) File>Import>Android>Existing Code into Workspace

1)文件>导入>通用>现有项目到工作空间2)文件>导入>Android>现有代码到工作空间

The errors described here are related to method 2).

这里描述的错误与方法2有关。

For method 1) there will be no overlap problems as long as you uncheck the "Copy Projects into Workspace" box if the project is already in the workspace.

对于方法1)如果项目已经在工作区中,那么只要取消“将项目复制到工作区”框,就不会出现重叠问题。

Edit: There is a third method that wasn't in my original post.

编辑:还有第三种方法没有出现在我最初的文章中。

3) File >New>Other>Android>Existing Android Project into Workspace

3)将>新>其他>Android>现有Android项目文件到工作区内

#3


39  

Instead of import from Android -> Existing Android Code Into Workspace, You must use General->Existing projects into workspace. It's probably a solution.

而不是从Android ->现有的Android代码导入到工作区中,您必须使用通用->现有的项目到工作空间中。可能是一个解决方案。

#4


7  

Today I accidentally solved the issue:

今天我意外地解决了这个问题:

Below 2 steps may not be involved but not sure:

  1. Call from (Eclipse menu)* "/Window/Android SDK Manager" and update a) "Android SDK Tools" b) "Android SDK Platform-tools" packages
  2. 调用(Eclipse菜单)*“/Window/Android SDK管理器”并更新a)“Android SDK工具”b)“Android SDK平台工具”包
  3. Call from Eclipse menu "/Help/Check for Updates" and update Eclipse. Restart Eclipse.
  4. 从Eclipse菜单中调用“/Help/Check for update”并更新Eclipse。重新启动Eclipse。

Steps below are necessary:

  1. From eclipse menu "/File/Import/Android/Existing Android Code Into Workspace"
  2. 从eclipse菜单“/File/Import/Android/现有Android代码到工作区”
  3. Browse and select problematic project/or problematic projectS parent directory.
  4. 浏览并选择有问题的项目/或有问题的项目父目录。
  5. Check "Copy projects into workspace".
  6. 检查“将项目复制到工作区”。
  7. Check "Add projects into working sets".
  8. 检查“将项目添加到工作集中”。
  9. Press finish.

    按finish。

  10. [Optional scenario]: If project(s) and their containing folders have been renamed with the fully qualified package names then simply click on project node parent (where you see project package name instead of project's old name) in Eclipse and rename project with old name. Eclipse will rename folder too.

    [可选场景]:如果项目及其包含的文件夹已经用完全限定的包名重命名,那么只需在Eclipse中单击项目节点父节点(您在其中看到的是项目包名而不是项目的旧名),并以旧名重命名项目。Eclipse也将重命名文件夹。

P.S. Tested on Eclipse Juno.

P.S.在Eclipse Juno上测试。

Edit: Many times have passed since this answer and new Eclipse and Android SDK arrived. They have no much more problems during importing existing projects. The only thing one has to consider before importing is to move project folders(those ones one is willing to import) outside of eclipse workspace dir and then check checkboxes ("copy projects into working sets", "add projects into wokring sets") in import wizard dialog. Also I recommend doing this with latest Android SDK because it no more imports projects with dummy names and does not rename folders as it did in some custom cases.

编辑:这个答案发布后,新的Eclipse和Android SDK已经出现了很多次。在导入现有项目时,他们没有更多的问题。在导入之前,您需要考虑的唯一一件事是将项目文件夹(那些您愿意导入的文件夹)移到eclipse workspace dir之外,然后在导入向导对话框中选中复选框(“将项目复制到工作集”、“将项目添加到wokring集”)。我还建议使用最新的Android SDK来实现这一点,因为它不再导入带有虚拟名称的项目,也不像在某些定制案例中那样重命名文件夹。

#5


4  

I have been banging my head against the wall with a similar problem. The only thing that helped is following the steps in this post.

我一直在用同样的问题撞墙。唯一有帮助的是遵循本文中的步骤。

#6


4  

This problem drives me crazy as well but I know what the cause of it is. The problem is that eclipse is not smart enough to create a folder with the same name of your project within your workspace folder if it is custom.

这个问题也让我抓狂,但我知道它的原因。问题是,如果eclipse是自定义的,那么它还不够聪明,无法在工作区文件夹中创建与项目同名的文件夹。

The way to solve this is to make sure all of your projects are in a folder with the name that matches your Project Name, otherwise it will dump all of your project files straight into the directory. The reason why you end up seeing that error is because it thinks you are putting a project inside another project (probably reads the project config file).

解决此问题的方法是确保所有项目都位于与项目名称匹配的文件夹中,否则它将直接将所有项目文件转储到目录中。您最终看到这个错误的原因是,它认为您正在将一个项目放入另一个项目中(可能是读取项目配置文件)。

I noticed this is especially a problem when not using the default workspace path. The way I solve this problem is to just add the Project Name to the end of location. So let's say you are putting a project named "HelloWorld" into /Users/name/Documents/projects/android/, you would want to manually add "HelloWorld" to the end of it, like this: /Users/name/Documents/projects/android/HelloWorld. This would ensure that the project is put in it's own folder called "HelloWorld" and not inside some other project. Be sure that if there are any projects not within folders into a folder of the same name as the project to solve the errors.

我注意到,如果不使用默认的工作区路径,这是一个特别的问题。我解决这个问题的方法是将项目名添加到位置的末尾。假设您将一个名为“HelloWorld”的项目放入/Users/name/ document /projects/android/ android/,您需要手动添加“HelloWorld”,比如:/Users/name/Documents/projects/android/HelloWorld。这将确保项目被放在它自己的名为“HelloWorld”的文件夹中,而不是在其他项目中。请确保,如果有任何项目不在文件夹内,则将其放入与项目相同的文件夹中,以解决错误。

#7


4  

I solved this problem with using the following steps:

我用以下步骤解决了这个问题:

1) File -> Import
2) Click General then select Existing Projects into Workspace
3) Click Next
4) Browse the directory of the project

Click Finish!

单击Finish。

It worked for me

它为我工作

#8


2  

  1. Copy the code you want somewhere outside your workspace folder
  2. 将您想要的代码复制到工作区文件夹之外的某个地方
  3. Create a new project using existing code from that folder
  4. 使用该文件夹中的现有代码创建一个新项目
  5. Once the project is created, right click on it and Refactor > Move it into the Workspace folder. (use default location)
  6. 一旦创建了项目,右键单击它,并重构>将其移动到工作区文件夹中。(使用默认位置)

#9


2  

I solved this problem with using the following steps:

我用以下步骤解决了这个问题:

  1. File -> Import

    文件- >导入

  2. Click General then select Existing Projects into Workspace

    单击General,然后在工作区中选择现有项目

  3. Click Next

    单击Next

  4. Browse the directory of the project

    浏览项目的目录

  5. Click Finish!

    单击Finish。

It worked for me

它为我工作

#10


1  

Here is what I did that worked great. I just imported an existing project under general instead of importing an android project.

这是我做的非常棒的事情。我只是导入了一个通用的现有项目,而不是导入一个android项目。

#11


0  

What operating system are you using? I use Linux Mint. In my case it turned out to be a symbolic link issue. Every time I tried to create the project with the symlink path, it would give me that error. Creating the project elsewhere, and then migrating it to the symlinked directory solved it for me.

您正在使用什么操作系统?我使用Linux Mint。在我看来,这是一个象征性的链接问题。每当我尝试用symlink路径创建项目时,它都会给我那个错误。在其他地方创建项目,然后将其迁移到symlinked directory,为我解决了这个问题。

#12


0  

The easiest way to solve this problem is just to move your`s project to another folder and import it. This is because you have already had this project(or project with the same name) in that folder. And when you delete project, eclipse still retains a reference to it

解决这个问题最简单的方法就是将项目移到另一个文件夹并导入它。这是因为您已经在该文件夹中有了这个项目(或同名项目)。当您删除项目时,eclipse仍然保留对它的引用

#13


0  

Suppose you have something like:

假设你有:


/prj/workspace/prj1
/prj/workspace/prj2


And your eclipse workspace is in /prj/workspace level (i.e. /prj/workspace/.metadata). If you're having problem importing prj1 and prj2, you can either move your .metadata somewhere else (/prj/.metadata, /prj/eclipse/.metadata, etc.) or create a sub level in workspace so that it looks like:
/prj/workspace/android/prj1
/prj/workspace/android/prj2


And import prj1 and prj2 again. In another word: as long as prj1, prj2, and .metadata are not in the same level it will be fine.

#14


0  

I've been having this problem in Linux, with a project that I renamed, removed, and reimported. Somewhere in the .metadata, it's still there evidently.

我在Linux中遇到了这个问题,我重命名、删除并重新导入了一个项目。在元数据的某个地方,它显然仍然存在。

I finally solved it by the following steps:

我最终通过以下步骤解决了这个问题:

close Eclipse
mv .metadata .metadata_orig
start Eclipse
reset default workspace
reimport projects

This may not work for everyone, especially if you already have lots of projects in multiple workspaces. But if you're used to reconfiguring Eclipse (which I do every time I upgrade to the next Eclipse release) it's not too bad.

这可能并不适用于所有人,尤其是当您已经在多个工作空间中有许多项目时。但是,如果您习惯于重新配置Eclipse(每次升级到下一个Eclipse发行版时我都会这么做),那就还不错。

#15


0  

This option fixed my issue.

这个选项解决了我的问题。

Link : http://fledglingsnook.wordpress.com/2012/08/09/eclipse-issue-overlaps-the-location-of-another-project/

链接:http://fledglingsnook.wordpress.com/2012/08/09/eclipse-issue-overlaps-the-location-of-another-project/

#16


0  

paste the project source and support libs to any other newly created folder and try to import from there. It worked for me.

将项目源粘贴到其他新创建的文件夹,并尝试从那里导入。它为我工作。

#17


0  

Copy the project into your workspace, create new Android Application Project with the same name from eclipse file->new->project and voila.

将项目复制到您的工作空间中,创建新的Android应用程序项目,该项目的名称与eclipse文件->新>项目相同。

#18


0  

Go to the .project file of your project make sure it display the same name as displayed in project folder. if not change the name. it will work.

转到项目的.project文件,确保它显示的名称与项目文件夹中显示的相同。如果不改名字的话。它将工作。

#19


0  

There are a variety of scenarios, but, in my case, I wanted to retain the folder and it's contents, as it had been checked out from .git. However, I needed to be able to modify the source and other stuff using Eclipse.

有各种各样的场景,但是在我的例子中,我希望保留文件夹和它的内容,因为它是从.git检出的。但是,我需要能够使用Eclipse修改源代码和其他内容。

I found the problem was that the .cproject and .project files had path information that was very environment specific (and did not match my environment).

我发现问题是.cproject和.project文件的路径信息非常特定于环境(并且与我的环境不匹配)。

What I did was this:

我所做的是:

  1. Created a new empty folder(with a different name) and created a new workspace pointing to that folder.
  2. 创建一个新的空文件夹(使用不同的名称)并创建一个指向该文件夹的新工作区。
  3. Checked out or copied the .git project/folder into the empty folder.
  4. 签出或将.git项目/文件夹复制到空文件夹中。
  5. Then imported, General, Existing projects in Workspace.
  6. 然后导入,一般,工作区中的现有项目。

The key seemed to be creating the top level empty work space with a different name.

关键似乎是用不同的名字创建顶层的空工作空间。

I hope this helps someone.

我希望这能帮助某人。

#20


0  

If you wish to open a new project from an existing source code in the following way:

如果您希望从现有的源代码中以以下方式打开一个新项目:

File -> Import -> General -> Existing Project into Workspace

you still have the message "Invalid Project Description". I solve it just by going in

您仍然有“无效项目描述”的消息。我只要进去就能解出来

File -> Switch Workspace

and choosing one of the recent workspaces.

选择一个最近的工作空间。

#21


0  

I got rid of my issue by changing File > Workspace and then, after the restart, reset the Workspace again.

通过更改文件>工作区,我消除了这个问题,然后在重新启动之后,重新设置工作区。