How to move and rename a project in android studio?

前端 未结 12 1028
一向
一向 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:58

    In Android studio 1.5

    1. Choose the project level view hierarchy.
    2. choose the project folder example com.example.app1 and right click -> Refactor -> move... or F6.
    3. check Move package 'com.example.app1' to another package and it may generate warning just choose OK and enter your new path for example 'com.hi.app2' and click ok and it will ask for create a new folder choose ok.
    4. close project from File -> close project
    5. choose open exiting Android studio project
    6. just Delete the all old folders for example here example and app1.
    7. Clean and Rebuild project.

    This will update move and rename the project path.

提交回复
热议问题