How to copy project Android Studio

This is a quick summary of how to copy an Android Studio project.

  1. Use the copy function of the system to make a complete copy of the folder that contains the project to be copied. In the example below, I made a complete copy of the folder "SecretProject1" and named the folder "SecretProject2"
  2. Launch Android Studio and locate and open the copied project "SecretProject2".
  3. Open "AndroidManifest.xml" and change the package name to the new name given to the copied project. In my case, it's "secretproject2" so I change the package name to "me.proft.secretproject2".
  4. Right click on any one of the folder under "java" then select "Refactor" -> "Rename".
  5. Click on "Rename package". Enter the new name of the project. In my case, it's "secretproject2". Then, click on "Refactor". Click on "Do Refractor" to start the refactor process. After it's done, click on "Sync Now" to synchronize the project.
  6. Open "AndroidManifest.xml" and change the label of the App.
  7. Click on the "Run 'app'" icon to verify if everything is O.K. with the copied project.