When you have worked a lot on an Android project and then if you need to rename the project there are lots of configuration files, .xml files, and gradle files in Android Studio that you’re afraid to break things up. Sometimes we end up creating a new Android Studio project, with the correct name and then pass the source files from the old project to the new one. Here we are changing the project name only. While changing the name make sure that the project name is written without spaces. Now the point that comes here is how we can Change Project Name in Android Studio. So in this article, we are going to discuss five different methods to change the Project Name in Android Studio.
Step 1: Click on the Setting Icon and Uncheck Compact Middle Packages
Step 2: Click on your Project Name and Go to Refractor > Rename
Step 3: Click on Rename Packages
Step 4: Change the package name and click on Refractor
Step 5: Click on Do Refractor and then you will fill in finding that the project name is changed
Open app/build.gradle and change this line:
<string name=”app_name”>New Project Name</string>
Doing this name of your app will be changed.
Open settings.gradle and change this line:
rootProject.name = “New Project Name”
Open app/src/main/AndroidManifest.xml and change the following line: