Android Studio Project Root Directory Name Change/ Project name change

后端 未结 10 1365
自闭症患者
自闭症患者 2020-12-13 04:10

How to change the name of a project\'s root directory in Android Studio- 0.9.9.I read the other solution here but nothing works for me. I can change/refacto

相关标签:
10条回答
  • 2020-12-13 04:42
    1. Right click on the root projects name.
    2. Refactor -> Rename
    3. Change the name.
    4. Rename directory -> Ok.
    5. Open settings.gradle and rename the :app from include ':app' with the new folder name including the :
    0 讨论(0)
  • 2020-12-13 04:45

    The easiest way I have found to do this is to copy the project and then change the root folder name on the copy. Then just open copy as a new project in Android Studio.

    0 讨论(0)
  • 2020-12-13 04:46

    To avoid problems, use refactor: Change the left view from "Android" (where you see the files) to "Project". Right click on your project and select "Refactor/Copy". Now create your new project folder with windows explorer (otherwise you might get an IO Exception). After refactoring, be sure to select "Build/Clean Project" and then "Build/Make Project".

    0 讨论(0)
  • 2020-12-13 04:47
    1. Close android studio

    2. Change project root directory name

    3. Open android studio

    4. Open the project(not from local history but by browsing to it)

    Worked for me @ Studio 2.1.3

    0 讨论(0)
提交回复
热议问题