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
Refactor -> Rename
Rename directory -> Ok
.settings.gradle
and rename the :app
from include ':app'
with the new folder name including the :
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.
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".
Close android studio
Change project root directory name
Open android studio
Open the project(not from local history but by browsing to it)
Worked for me @ Studio 2.1.3