Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - copy existing project with a new name in Eclipse

I'm using Eclipse. Say I have a project 'ProjectA' in the eclipseworkspace (in a folder ProjectA). I want to copy the project but with a new name (ProjectB) and have all the references in the new project adjusted. I can't find much help for what I thought would be a vary basic operation. I want to try out variations on the original design/code and creating a copy seemed the obvious way to go about it.

Any suggestions please.

like image 783
ron Avatar asked Mar 30 '11 08:03

ron


People also ask

How do I copy and rename an Android project?

Select your project then go to Refactor -> Copy... . Android Studio will ask you the new name and where you want to copy the project. Provide the same. After the copying is done, open your new project in Android Studio.

Can you rename Android project?

First, open the project directory by right-clicking on the project name and click at show in explorer option. Step 2: Close the android studio, and go to the window explorer of the project directory and rename the root folder with a new name.


2 Answers

  1. Copy your project to a new one (Ctrl+c & Ctrl+v).

  2. Change the package-name in your manifest

  3. Rename your main package with refactor. Don't forget to select.

  4. Change your application name in manifest

    application android:icon="@drawable/icon" android:label="**new name**" 
like image 138
Tima Avatar answered Sep 20 '22 15:09

Tima


I just want to add an item to Mur Votema's list:

5) Don't forget to open the project you want to copy!

It just cost me some minutes to find out that it doesn't work with closed projects. :-)

like image 45
iwpSoftware Avatar answered Sep 22 '22 15:09

iwpSoftware