Change project name on Android Studio
Solution 1:
This did the trick for me:
- Close Android Studio
- Change project root directory name
- Open Android Studio
- Open the project (not from local history but by browsing to it)
- Clean project
If your settings.gradle
contains the below line, either delete it or update it to the new name.
rootProject.name = 'Your project name'
Edit:
Working in all versions! Last test: Android 4.2.1 Jun 2021.
Solution 2:
You can change the name that is shown in the title bar in the file ".idea/.name".
Solution 3:
Update: This is an out-dated response from 2013 and only works for v2.2.2 and below.
-
Right-click on your root project directory
-
Select Refactor -> Rename
-
Select rename project and change the name there.
-
Also Select rename module and change it there as well. If you get an message saying module name already changed thats fine.
-
Now right-click on the project root folder again and select Open Module Settings.
-
Under the Modules section remove whatever folders are associated to your old project name.
-
Apply Settings and hit OK.
-
Restart Android Studio.
Hope that helps!
Solution 4:
update July/2017: tested and worked
- Open project folder (you could open it through Android Studio itself see this )
- now close Android Studio
- change the yourOldProjectName.iml to the a new name
- rename the parent folder to the same new name.
- re-open Android Studio --> File --> Open--> path to your renamed.im