How to change the project name in Android Studio safely?

Viewed 17496

I want to change the project name in Android Studio. I have found some answers on Stackoverflow but it didn't work for me. Please suggest me some suitable solution.Currently I'm using Android Studio 2.3.
Thanks always :)

5 Answers

Perform the following Steps:

Step 1 - Rename:

Step 1 - Rename

Step 2 - Update app name in String file:

Step 2 - Update app name in String file

Below strategy worked for me:

  1. Close Android Studio
  2. Change Android Project root directory name
  3. Open Android Studio
  4. Open the project from Android Studio (Try not to open the project from android studio history but by browsing it)
  5. If settings.gradle contains the below line, change it to the new project name or remove it

    rootProject.name = 'Your project name'

  6. Clean the project and Build it

thanks

Related