How do I make an existing Android Studio Project copy?

Please Share On:

So, you are new in android studio and you have successfully created your first android studio app. Now, you want to copy it and change the package name and make some changes and relaunch again as another app? Then, you are in the right place to read on.

Keep reading my blog. I am going to show you the easiest steps to copy your existing android studio project.

STEP 1:

Open the location where your existing Android Studio project folder is saved. Copy and paste your existing Android Studio. Let say the existing Android Studio Project name is “CitizenshipTest”. After copy and paste this “CitizenshipTest” in the same location. You will have another folder named “CitizenshipTest-Copy”.

STEP:2

Rename “CitizenshipTest-Copy” to your prefer name. I renamed as “USCitizenshipTest”.

STEP 3:

Open your existing project in Android Studio. And go the location where you saved your new folder.

File- >Open -> USCitizenshipTest -> OK

STEP 4:

Then the project will load in your Android Studio Screen. Now it’s a time to rename the package name. To rename your project package name, follow the following steps.

Select “com.domain_Name.Package_Name” under the Java Folder.

App -> Java -> com.example.CitizenshipTest

STEP 5:

Right Click on “com.geetaregmi.CitizenshipTest” ->Refactor -> Rename -> Rename Package. Change Name into “com.geetaregmi.usCitizenshipTest” then click refactor.

And Click Do Refactor.

STEP 6:

Now, you have to change the gradle file. Open Gradle Scripts ->build.grade(Module:app)

Change applicationID

applicationId "com.geetaregmi.citizenshipTest"

into

applicationId "com.geetaregmi.uscitizenshipTest"

Step 7:

Open your project manifests. App ->manifests -> AndroidManifest.xml and change your package name.

package="com.elsebazaar.aucitizenshipTest

into

package="com.elsebazaar.uscitizenshipTest

That’s it. You have successfully copied your existing project and changed package name into your new package name.



Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial