How to move and rename a project in android studio?

前端 未结 12 1004
一向
一向 2021-02-01 15:33

This should be a really simple question :)

I have a project that works fine. Now I wanted to rename it and to change the path of the projectfolder. First it seemd simple

12条回答
  •  既然无缘
    2021-02-01 15:56

    This is what I do to copy/move a project. I am using Android Studio version 2.3.2

    1. Copy entire project directory to desired location
    2. Rename project directory to whatever you choose
    3. In the new project, find the workspace.xml file and manually update. Mine is located in the /.idea folder of the main project directory.
    4. When you are done changing statements in workspace.xml, start android studio and open an "Existing Project." Select Build/Rebuild and rebuild project.

    Here are some example statements that need to be changed:

    
    
    

    There are other statements and many statements are identical. You should be able to get the idea. The key to doing this correctly is using the same naming methodology already in place in the existing workspace.xml file. If you utilize search and replace this is fairly simple process and takes only a few minutes.

    Hope this helps someone!

提交回复
热议问题