Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Different Ways to Change the Project Name in Android Studio

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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.

Method 1

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

Method 2

Open app/build.gradle and change this line:

android {

  defaultConfig {

      applicationId “com.example.yournewprojectname”

    }

}

Method 3

Update app/src/main/res/values/strings.xml:

<string name=”app_name”>New Project Name</string>

Doing this name of your app will be changed.

Method 4

Open settings.gradle and change this line:

rootProject.name = “New Project Name”

Method 5

Open app/src/main/AndroidManifest.xml and change the following line:

<manifest xmlns:android=”http://schemas.android.com/apk/res/android”

  package=”com.example.yournewprojectnamewithoutspaces”>

My Personal Notes arrow_drop_up
Last Updated : 07 Mar, 2021
Like Article
Save Article
Similar Reads
Related Tutorials