Efan Du
Efan Du

Reputation: 123

Android Studio Copying Projects

Hi I wrote a project on Android Studio, now I just want to create a exact duplicate to it so I could try some experiments on the new copy without ruining the old version.How can I do that?

Someone told me just to copy the file in finder(I'm using mac). I did that, and managed to open the new version as project. But it is not working.I am sure I need to edit a few places as the file name has changed, but I don't know where are the places to edit, any idea?

Thanks !

Upvotes: 0

Views: 644

Answers (3)

Akshar Patel
Akshar Patel

Reputation: 9378

Just Follow this steps:

  1. Clean renamedProject
  2. Go to java folder and Refactor > Rename to renamedProject
  3. Change app name in strings.xml
  4. Change applicationID to renamedProject if not already changed.
  5. Sync Project

Check out Detailed Steps in Official Book:

https://google-developer-training.gitbooks.io/android-developer-fundamentals-course-practicals/content/en/appendix_utilities.html#copy_project

Upvotes: 1

iamdeowanshi
iamdeowanshi

Reputation: 1069

To answer your question, you can simply locate project folder in finder, and copy it at different location with new folder name. Now open it in Android studio. This would create a replica of your project.

But better approach to achieve your requirement is GIT. You can refer following documentation for better git understanding.

Upvotes: 0

Subaz
Subaz

Reputation: 917

Well it depends on your project. Is it a small one or a big one with huge memory?

If it's a small one and you have enough memory in your Mac, just copy the whole folder instead of a file and paste it somewhere else. Then you can do anything you want to in the new one.

If your project is huge and don't want to waste memory, I suggest you to use GitHub.

Upvotes: 1

Related Questions