Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Change Project Name / Root Directory Name

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/refactor the package name but not the name of the root directory. I found another solution here, which is to change the name in .idea/.name file, which didn't work. After I changed name, I tried cleaning, rebuilding etc. but nothing reflected the changes in Android Studio. There is no REFACTOR option for "PROJECT NAME / ROOT DIRECTORY NAME", many people here confused the module name with project name / root directory name.

like image 277
Tanvir Avatar asked Feb 17 '15 18:02

Tanvir


1 Answers

Basically you can by changing the project's folder name and reopening it.

It is also recommended to change the name of the project in the Android Studio project structure by editing these files:

  • Change the project name in .idea/.name
  • Rename the [Name].iml file in the project root directory
  • Change the reference to this iml file in .idea\modules.xml
  • Change the rootProject.name in the project root settings.gradle
like image 184
Gorcyn Avatar answered Sep 24 '22 05:09

Gorcyn