Copy existing project with a new name in Android Studio

后端 未结 19 2160
野趣味
野趣味 2020-11-29 17:31

I would like to copy my Android project and create a new project from the same files just with a different name. The purpose of this is so I can have a second version of my

19条回答
  •  有刺的猬
    2020-11-29 17:38

    I'm following these steps and it's been working so far:

    1. Copy and paste the folder as used to.
    2. Open Android Studio (v3.0.1).
    3. Select Open an existing Project.
    4. Close the message that will pop up with title: "Import Gradle Projects".
    5. At left side on Android Tab go to: app -> java -> select the first folder (your project folder)
    6. Refactor => Rename... (Shift + F6)
    7. Rename Package, Select both options - Put the new folder's name in lowercase.
    8. Do Refactor
    9. Select: Sync Project with Gradle Files at toolbar.
    10. Build => Clean Project
    11. Go to app -> res -> values -> strings.xml, and change the app name at 2nd line.

提交回复
热议问题