Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing Existing Android Project Into Eclipse Renames Project

Every time I import an existing Android Application Project into Eclipse, it renames the project to the name of my launcher activity.

I have tried both of these methods:

File -> Import -> Existing Android Code Into Workspace

File -> New -> Android Project From Existing Code

In both of these scenarios, I browse to the project folder and select it, which causes it to show in the 'Projects' window as available for importing. However, the project is showing as being titled 'LauncherActivity', or something similar.

Edit: It's easy enough to change the project name back to what it was originally, I know how to do this:

Right-click on Project -> Refactor -> Rename

However, it is annoying to have to do it every time.

Edit 2: The .project file contains the correct project name, and yet the problem still occurs.

like image 434
Groppe Avatar asked Feb 12 '13 16:02

Groppe


People also ask

How do I rename an existing project in Eclipse?

To rename the project, simply right-click the project and select "Refactor/Rename...". Fill in the new name and click OK.


1 Answers

The project name is probably set in the project file. Try to edit the .project file, and change the name tag:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>Projectname</name>
    <projects>
like image 134
Timmetje Avatar answered Sep 21 '22 03:09

Timmetje