try uncheck the option
copy projects into workspace.
it works for me.
i built the eclipse dependencies in the project terminal and then tried to import the project and it worked.
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.
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.
i found this after two days of efforts.
it is worth trying.
it is very simple.
press f2 key to rename project .
and import multiple copy of android projects with the same package .
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.
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
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.
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...!!!
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.
i had the same error because there was one more project under svn in workspace but with another name. so i've removed it.
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
when i used a separate workspace folder for importing the project, eclipse did worked smoothly :)
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.
go to file ---> switch workspace .it will work
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.
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 :)
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.
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 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.
another way i just found!
move the project to some other folder and then import and if required copy to workspace
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.
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:
ctrl + xmyproject folder from eclipse workspace to other location ie desktop
- right click
navigator(you can get it from
window > show view > navigator) and refresh (it will prompt following dialog)
- just click
yesbutton and move your project folder back to eclipse workspace directory
- import again!
- now rock 'n' role
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.
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.
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.
try to rename the value of
<name> tag which inside "
.project" file of your project.
<?xml version="1.0" encoding="utf-8"?>
<name>rename this value</name>
this will work for sure. here you are just renaming your project.
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...:
no working sets:
this will effectively disable the working set and show all projects.
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.
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.
maybe you get the same project name in your '.project' file,check it,if yes, rename another name.than import again
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.
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.
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
so, i did following things in order to get the issue fixed:
- cut and paste project2 outside the workspace
.projectfile to have
- try importing project2 again.
it worked for me.
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.
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.
go to .project file in your project and change the name of the project in name tag
uncheck the "copy projects into workspace" checkbox, and then click "refresh" button, you will be able to import the project
- 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
- Maven building xml-structure?
- System.out.println() does not print to the console in Eclipse
- Is it possible to easily compile and run code in another machine in Visual Studio/Eclipse?
- Android SDK Eclipse AndroidManifest.xml not created
- AVD does not shows up when build target is higher
- Subclipse - How to mark a major revision?
- User Input and If-then and else
- Cursor placement when calling a method with void parameters
- not authorized for query on databasename.collection on mongodb using eclipse
- how to generate test report in selenium 2 java
- Eclipse and clip board
- JavaFX Eclipse suggestion to import not present
- What does the orange triangle in the target column of Android Device Chooser window mean?
- How to import a java project missing .project .settings .classpath files into eclipse
- Adjusting the Cell-Size of a GridLayout - Drawing Multiple Canvases?
- Can I install new software for eclipse without using mirrors?
- How to resolve 'Launching ServiceTest has encountered a problem' in EclEmma plugin in Eclipse IDE
- This FragmentManager should be recycled after use with #recylce()
- gwt maven plugin - unable to run archetype generated sample project in eclipse
- com.google.android.maps doesn't exist in Android studio
- Eclipse CDT – Application wide theme configuration
- Pull up/push down the negation in IDEA
- What fact(s) prove JIT compiler is built in Eclipse?
- Simple Hibernate program not terminating... eclipse bug or hibernate issue?
- selenium webdriver - close all child window except one particular child window using foreach (java)
- How to write a Pig UDF in Scala
- on button click switch xml layout page
- Nexus Navigation Bar Overflow Button
- C++ on windows closes a program immediately after launching
- Java IO: Why does the numerical representation of line feed appear on the console when reading from stdin?