Reputation: 11453
This is going on my nerves for so long now... I want to import an existing android project into my workspace, but sometimes there is already an existing project with the same name (best example: MainActivity
, which is the most common name for example projects in tutorials)
So I cannot import the new project into the workspace. Usually, I have to delete the MainActivity project A
, before I can import project B
using the same project name. Or (before import) I have to rename/modify the MainActivity
and the Manifest.xml
from project B
.
I know the New Project Name
field is editable, but if I change the project name i still cannot import the project into the workspace.
Is there any other workaround???
Upvotes: 7
Views: 4595
Reputation: 1388
Change the project name in the field "New Project Name" by double click on name you will get editbox type the project name you want for project as shown in screen you will able to import the same project with different name.
Upvotes: 3
Reputation:
Rename your existing project (f.e. MainActivity2
)
Right click on the project --> Refactor --> Rename .
Import the project (in your case MainActivity
)
Upvotes: 0
Reputation: 782
Open the project folder and edit the ".project" file. Just edit the name there.
Upvotes: 5