-1

Hi, I created a project in eclipse . I have a project name on a a different computer but it is a different project . Everytime i try to import this new project it reads the project.properties file and gives me an error saying cannot import project as the name is already in use .

Please help .

Bhoomika Brahmbhatt
  • 7,404
  • 3
  • 29
  • 44
dexter87
  • 85
  • 1
  • 8

6 Answers6

1

Try this. When importing,

Uncheck the copy projects into workspace checkbox.

Then click refresh button.

Bishan
  • 15,211
  • 52
  • 164
  • 258
  • Is this answer a copy of [this answer](http://stackoverflow.com/a/9053087/379693)? – Paresh Mayani Aug 21 '13 at 09:05
  • @PareshMayani Actually not. I'm also faced with same problem. This is how to i solve it. – Bishan Aug 21 '13 at 09:06
  • Do you have previously opened project with same name in Eclipse when importing new project ? You can't open two projects with same name at once. you have change name of one project. (ex: Project_01 and Project_02) – Bishan Aug 21 '13 at 09:36
0

You may have project with the same name or this issue is being raised due to the same of name of Main activity the particular you are trying to import.

For example: Most of the project has MainActivity.java and if you try to import it then it shows the same error.

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
  • Like i said i know that i already haave a prooject with this name ... but now both are working projects on two different computers . I cant lose any .... thats why i asked a way where i can import the new project .... – dexter87 Aug 21 '13 at 09:33
  • Yes while importing project name, change activity name to different name. – Paresh Mayani Aug 21 '13 at 11:30
0

okey ...please change the names of the projects, each project in eclipse is identified with names ..don't just rename the project folder, instead right click on the project in package explorer and rename from Refractor

  • both are working projects on two different computers . I cant lose any .... thats why i asked a way where i can import the new project .... i am scared , refactoring might make one of them not working – dexter87 Aug 21 '13 at 09:34
0

first delete your project from your project explorer and then import it..

Ansar
  • 364
  • 3
  • 16
  • both are working projects on two different computers . I cant lose any .... thats why i asked a way where i can import the new project .... – dexter87 Aug 21 '13 at 09:35
0

Just delete the .project and .classpath file from your existing folder from where you are importing the project.

Anchit Mittal
  • 3,412
  • 4
  • 28
  • 48
0

Go to workspace folder, create a new folder and paste your project in that folder. Go to eclipse and import the project from file Menu, make sure Uncheck copy projects into workspace before importing.

Umer Farooq
  • 7,356
  • 7
  • 42
  • 67
  • Both are alreaady in different workspaces.. the trouble is they aare being imported under the ssame package explorer ie for eclipse . – dexter87 Aug 21 '13 at 09:39