score:0
Try uncheck the option Copy projects into workspace
.
It works for me.
score:1
I built the eclipse dependencies in the project terminal and then tried to import the project and it worked.
score:2
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.
score:2
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:
- 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.
- 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
- 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.
score:2
I found this after two days of efforts.
It is worth trying.
FAQ
score:2
It is very simple.
press f2 key to rename project .
and import multiple copy of android projects with the same package .
score:2
If the project has been already deleted from the project navigator, then right click in project navigator, and select refresh to refresh the workspace. Then re-add the deleted project.
score:3
Nothing about could not solve my situation. This is how I solved.
- Close the IDE
- Remove the same name project form workspace
- Start the IDE
- Clean all project (not sure this helped)
- File > Import > Existing Project
- click refresh button
- import project
Done..
score:3
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.
score:3
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...!!!
score:3
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.
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.
score:3
I had the same error because there was one more project under svn in workspace but with another name. So I've removed it.
score:3
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
SOLUTION
when i used a separate workspace folder for importing the project, eclipse did worked smoothly :)
score:3
In case you are using Maven, make sure that your artifactId in pom.xml does not have the same name as any existing project name in your Eclipse project explorer.
score:3
Go to file ---> switch workspace .It will work
score:4
This worked for me.
File > New > Android Project > Create project from existing source
Location = the location of the project you want to import.
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.
score:4
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 :)
score:4
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.
score:4
My problem was a little bit different.
For example, the project name (what I see) was FooProject and in the imported project, I was looking for the FooProject but I could not. However, Eclipse does not let me import that project because he claims that it is already imported. And then, I have looked at the .project
file of the project and I have seen that the actual name of the project was not what I see (FooProject).
The conclusion;
The name of the project (what you see in Eclipse) may be different than the actual name of the project (what maven see). Because of this reason. Please be sure that they are the same name by checking .project
file of the project.
score:5
Another way I just found!
MOVE the project to some other folder and then import and if required copy to workspace
score:5
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.
score:5
It was happened to me when
I delete project from eclipse Project Explorer and not checked the remove content from disk.
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:
- Cut
Ctrl + x
myProject folder from eclipse workspace to other location ie Desktop - Right Click
Navigator
(you can get it fromWindow > Show View > Navigator
) and Refresh (it will prompt following dialog) - Just click
Yes
button and move your project folder back to eclipse workspace directory - Import again!
- Now Rock 'n' Role
score:5
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.
score:6
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).
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.
score: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.
If you get an alert saying your project is out of sync with the filesystem press F5 (refresh) and try again.
score:6
score:8
Try to rename the value of <name>
tag which inside ".project
" file of your project.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Rename this value</name>
<comment></comment>
<projects>
This will work for sure. Here you are just renaming your project.
score:9
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.
Updated for @Mawg:
First, click the Select Working Set...
:
Then, choose No Working Sets
:
This will effectively disable the working set and show all projects.
score:10
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.
score:11
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.
score:11
Maybe you get the same project name in your '.project' file,check it,if yes, rename another name.than import again
score:13
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.
score: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.
score:20
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.
The main reason was .project
file from the new project still had:
<name>Project1</name>
instead of <name>Project2</name>
.
So, I did following things in order to get the issue fixed:
- Cut and paste Project2 outside the workspace
- Change
.project
file to have<name>Project2</name>
- Try importing Project2 again.
It worked for me.
score:27
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:
Window -> Show View -> Other -> General -> Navigator
Then simply just continue with the process of import existing project.
score:57
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.
score:131
go to .project file in your project and change the name of the project in name tag
score:353
Uncheck the "copy projects into workspace" checkbox, and then click "refresh" button, you will be able to import the project
Source: stackoverflow.com
Related Query
- Some projects cannot be imported because they already exist in the workspace error in Eclipse
- Eclipse: Some or all projects can not be imported because they already exist in the workspace
- error: "Some projects cannot be imported because they already exist in the workspace" when i tried to import SWT to Eclipse
- Again, Eclipse says "some projects cannot be imported because they already exist in the workspace"
- Some projects cannot be imported because their project description file is corrupted
- Projects cannot run in eclipse because of deleting the whole .metadata folder by mistake
- Imported Github projects - Many errors: The import org.eclipse cannot be resolved
- Where in an Eclipse workspace is the list of projects stored?
- Cannot complete the install because of a conflicting dependency
- Android : Cannot complete the install because of a conflicting dependency
- Maven/mvn warnings - It is highly recommended to fix these problems because they threaten the stability of your build
- A project with that name already exists in the workspace eclipse
- SVN: Cannot commit 'x' and 'y' as they refer to the same URL?
- WARNING The requested profile "pom.xml" could not be activated because it does not exist
- How to copy projects into workspace of eclipse after importing the project?
- Eclipse - Cannot complete the install because one or more required items could not be found (org.apache.httpcomponents.httpclient)
- Cannot complete the install because of a conflicting dependency. Eclipse error for ADT
- Location of projects in eclipse that are not in the workspace
- The project cannot be built until its prerequisite PokerGameEngine is built. Cleaning and building all projects is recommended
- Open eclipse projects synced with git that are outside the workspace
- “libprism_sw.dylib” cannot be opened because the developer cannot be verified. on mac JAVAFX
- Eclipse : Force UTF-8 in the imported projects
- Eclipse is not showing any projects from my workspace folder even the projects are there?
- BIRT: XML data source cannot be retrieved. XML data source file is invalid or the file doesn't exist
- Eclipse, C/C++ ,Link two projects in the same workspace
- Drl file cannot be opened because it does not exist
- Eclipse Photon cannot complete the install because of a conflicting dependency
- class path resource [applicationContext.xml] cannot be opened because it does not exist using java config
- Cannot open Eclipse workspace because of .lock
- Hibernate : classpath resource cannot be opened because it does not exist
More Query from same tag
- Eclipse crashes : "An error has occurred. See the log file"
- Spring Roo Shell in Eclipse: Could not create sts.roo.ui.rooShellView
- Android - Button Question
- Configure Eclipse with websphere liberty tools with Java EE 7 javadoc integration
- Android Facebook Logout error (Unknown Method)
- Debug as Java App - onModuleLoad() error
- Eclipse Helios and SVN?
- How to place tabs over JInternalFrame title bar in Java Swing?
- How do I properly organize jars into one folder in Eclipse?
- How to correctly pass a PHP variable to another PHP page?
- View ddms heap size
- Eclipse plugin does not find artifacts in local maven repo
- eclipse papyrus look and feel for uml diagrams
- image/icon use a relative path
- Eclipse Compiling Java Code Error - Compiler is null
- Maven-jetty-plugin can't resolve project dependency when I changed JRE version from 1.8 to 1.6
- Error create SQL model connection. Eclipse to mysql
- Whenever my program crashes in eclipse it stays running in the background
- how to solve proxy using maven (IN Eclipse)
- eclipse - swt - using windowbuilder in xfce env
- Java Architecture - Question about Solution Design
- Getting java.net.ConnectException: Connection refused: connect in eclipse
- How to set the caret position at the end of the text?
- Getting Latest Version for all files in a Project
- Why are the contents of my Outline and Bookmarks disappearing in Eclipse?
- Running a Spring MVC app in tomcat 7.0 gives me HTTP Status 404 : requested resource is not available.
- Does opc ua sampling rate set at 0 work with an OPC UA Ecplise Milo server
- R.Java not generated
- Set image in app as wallpaper
- Having Trouble Importing Image into Project