Different Ways to Change the Project Name in Android Studio
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
Как переименовать проект в android studio
How to change your Project Name & Package Name in Android Studio
Today, I’m going to show you how to change your project name and package name in your project very easily!
Let’s dive right into it!
Change the Project Name
Change the name of your project by closing the Android Studio, go to your project folder, rename it…

Delete the .idea folder and .iml file. (To show hidden folders, press Cmd + Shift + . (dot) ).

Open the settings.gradle file with a text editor, like VSCode, and change the rootProject.name to your new project name.

Done! Project name has been changed! Just open your project with the Android Studio and Gradle will sync again.
Change the App Name
Usually, when you change the project name, you wanna change the name of your app too.
Go to the res folder > values > strings.xml and change the app_name to your new name.

Change the Package Name
To rename your package name, all you have to do is go to your AndroidManifest.xml file, put your mouse cursor in front of the part of the package name you want to change.

Right-Click > Refactor > Rename

In the new window press Rename package

Change name and press Refactor

…and press Do Refactor at the bottom.

Your package name is usually in format com.domain.appname, in this example, we changed the appname part, but you can do the same steps for the domain.
Last, go to your module-level build.gradle file and change the package name in applicationId

Done! Package name has changed!
If you have any questions, please feel free to leave a comment below
How to Rename a Project in Android Studio
There might be some situations where you start your development from a boilerplate template or downloaded code from the internet & you plan to customize it. Changing the identity of a project during development is always required as client requirements also change. In this post, I am going to show an easy guide for changing your project name using Android Studio.
If you try to just rename the project, the android studio will prompt an error that the project does not exist. To get over it, follow us through this blog to rename your android project successfully.
Before starting we strongly recommend updating the android studio to the latest version. Although we tried it on all versions of the android studio and it worked. So let’s dive right into it.
Step 1:
First, open the project directory by right-clicking on the project name and click at show in explorer option.
Step 2:
Close the android studio, and go to the window explorer of the project directory and rename the root folder with a new name.
Step 3:
Open the android studio and open the project (not by project history). Select option Open an existing Android Studio Project and select your project.
Step 4:
Now clean the project using Android studio (Click on Build from top toolbar then Click on Clean Project).
Step 5:
Now go to settings.gradle file and rename the project & sync it
Congratulations You’ve successfully changed your project name.
Change project name on Android Studio
I want to change the name of my project and module. But if I try to rename them Android Studio notify me some errors.
e.g. I want to change the name from «MyApplication» to «AndroidApp» as shown in the image below.

In the first rectangle I want to change it in:
AndroidApp («G. \Android\AndroidApp).
In the second rectangle I want to change it in:
AndroidApp [AndroidApp-AndroidApp]
edit: This is the log:
Gradle: Project ‘AndroidApp’ not found in root project ‘MyApplicationProject’.
![]()
37 Answers 37
This did the trick for me:
- Close Android Studio
- Rename project root directory name
- Open Android Studio
- Open the project
- Clean project
If your settings.gradle contains the below line, either delete it or update it to the new name.
Edit:
Working in all versions! Last test: Android Studio Chimpmunk Jun 2022.
![]()
You can change the name that is shown in the title bar in the file «.idea/.name».
![]()
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.
![]()
![]()
Change the Project Name
Change the name of your project by closing the Android Studio, go to your project folder, rename it…

Delete the .idea folder and .iml file. (To show hidden folders, press Cmd + Shift + . (dot) ).

Open the settings.gradle file with a text editor, like VSCode, and change the rootProject.name to your new project name.

Done! The project name has been changed! Just open your project with the Android Studio and Gradle will sync again.
![]()
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
![]()
UPDATE:
OLD ANSWER: 1. Right click your
ackage name and Refactor -> Rename.

- When asked if you want to Rename directory or Rename package , choose Rename package

- Now in Finder, manually rename your root folder (the parent folder of your /app folder)

Reopen project in Android Studio with new folder name
Cmd + Shift + f for any instances of your old name in Android Studio, and change all of them to the new name.
Change the applicationId in your build.gradle
BONUS ROUND:
- You might need to update a .gitignore file if it was at the root of your project. Note that when swapping branches after doing this, you’ll potentially see a bunch of files showing up in working changes, but don’t worry they should go away after you merge in your renamed branch with updated .gitignore . Don’t manually remove these as it can cause issues in Android Studio.
- Delete your old root folder in Finder
![]()
Just find the name » android:label=»AppName» » from the Android Manifest . Just rename the label name (eg: «AppName» here) all such android:label in the AndroidManifest.xml . Just save it ! When you run the app you will see the new Name
![]()
Just go to res>values>strings.xml. One line says Somethig-your name
Just replace your original name to
Close Android Studio.
Rename the folder of the root of the project. For example, change «MyApplication» to «Myblablabla».
Delete the ‘.idea’ folder.
Open Android Studio, and import the updated project.
![]()
![]()
1.Edit settings.gradle file, change rootProject.name
2.Go to the project file folder, rename the file folder
3.Delete .idea folder in your project and rebuild the project
![]()
What worked for me is:
- change the name in it.
- go to the app root folder which you want to change and refactor—> rename it.
- close the android studio.
- browse to the folder and change the name
- start android studio again.
- do the gradle sync.
And you are done!
![]()
For one, I’d strongly suggest updating to the latest Android Studio (0.3.7 as of now); there are tons of bug fixes.
You’re running into bug https://code.google.com/p/android/issues/detail?id=57692, which is that if you try to use the UI to rename modules or your project, it doesn’t update the build files. Sorry, it’s really broken right now. I’d suggest changing the directory names directly in the filesystem, and updating your settings.gradle file to reflect the changes. Your project on disk should look something like this (with many more files than what’s shown here):
it uses projectFolder’s name as the project name and applicationModuleFolder as the name of the module that your Android App lives in (the upper and lower outlined boxes in your screenshot, respectively). I think the way your project is set up now, they both have the same name; you can rename both to the same new name if you like, or you can give them different names; it doesn’t matter.
Once they’re renamed, edit your settings.gradle file; it will look something like:
just change the name to your new name there as well. Once these changes are made, click the Sync Project with Gradle Files button in the toolbar (if you’re running a very old version of Android Studio, it may not have that button, so you can close the project and reopen it in that case) and it should pick up the changes.
A very quick way to solve this as at November 2020 is by the following steps
hit the shift key twice, a pop up will show search for a file named "settings.gradle" when it opens change the rootProject.name = "Old-name" to rootProject.name = "new name" then sync.
hit the shift key twice, a pop up will show search for a file named "string.xml", when it opens change <string "app_name">old-name to <string "app_name">new-name
close android studio
locate androidStudioProject directory on your machine, open it and find the project by its old name, rename it to the new name.
open Android Studio goto File > Open > "new name". open it from there.
this is currently working on Android Studio 4.1.1
![]()
You can try something like this in your settings.gradle file:
After restarting of Android Studio it will also change text in title bar to YOUR_PROJECT_NAME .
Tested on Android Studio 2.2 RC2
-
Refactor the name to com.example.[NewFileName] in path:
Gradle Scripts>build.gradle (Module: app)
Gradle Scripts>build.gradle (Project Settings)
- Press Sync now prompt
- Rename your folder to [NewFileName] outside Android Studio
![]()
Just change the application id in build.gradle
For changing application label, in manifest
Go to [Tool Window\Project] by Alt + 1 , and change the level on the top-left corner of this window to Project (the other two are Packages and Android), then you can rename the Project name by Shift + F6 . Type in the new name and press OK.
If you just want to change the app name which appears in the system, you can modify the android:title in the manifest.xml.
![]()
![]()
You can easily rename using refactor.
Write click on the project root folder and click refactor.
Then click on the rename, there will be a popup, you can give new name there.
![]()
What works for me is,
Go To Build.gradle Change ApplicationId & sync project.
Right click on your project > Rename > Rename Package.
Run your app and boom.
Hope this works as did for me
![]()
To change the apps name in Android Studio:
Close the project in Android studio and get rid of it from the quick start side of the launcher ( Should be a mini next to the name).
Close Android Studio.
Go into where your app file is located and rename it (Under My Documents Usually).
Restart Android Studio, select add new project and navigate to the folder that was renamed.
Changing the label of the launcher of the application / The applications actual name:
- Go into your initial folder (app)
- Go into manifests
- Go into AndroidManifest.xml.
- Rename android:label= _____ to whatever you want to rename your app to
Eg: android:label=»Developer Portal».
- Click Save All.
![]()
For me the following works:
- Close Android Studio.
- Rename the folder of the project from MyApplication to NewProjectName
- Rename MyApplication.iml file to NewProjectName.iml
- in NewProjectName.iml change every MyApplication text to NewProjectName
- in .idea/modules.xml change every MyApplication text to NewProjectName
- in .idea/workspace.xml change every MyApplication text to NewProjectName
- Start Android Studio.
- All the previous settings remain, and «app» module as well!
Here’s what I did in Android Studio Beta (0.8.14)
- Changed the package name manually in the manifest file
- Navigated to build -> source -> r -> release and drilled down until I found R.java
- Selected the file and pressed F6 to rename
- Then from the Build menu selected Make Project
- Clicked the first error and pressed Shift+F6 on the package name and renamed which updated all my source files
- Selected my project name in Android Studio, right clicked -> Refactor -> Rename and changed the name there too.
- Next went to app -> build.gradle and updated my applicationId
- Navigate to .idea -> .name file and rename your Android Studio project in there too
- Just to clean up I deleted the old package folder inside build -> source -> r -> release
And vola, my package name has now changed and builds successfully.
changing following thing worked for me. settings.gradle-> rootProject.name=’MyEvinApp’ change rootProject.name will take android studio as project name
![]()
For changing the project name only in title bar without impacting the project
- Go to settings.gradle(Project Settings)
- Change rootProject.name=’Desired Name’
- Click on Sync Now
it will change the project name in the title bar immediately without restarting.
Try to change android:label in AndroidManifest.xml and reinstall/rerun app:
![]()
Here is how it all changes in seconds. in your «manifest.xml» find «android:label=» in front of it just type your new name inside «» for example: android:label=»My new name»
Its done! your welcome
I just went into the manifest and changed android:label=». » to the name of the application. Once Id changed this, the title and the actual app name changed to that
![]()
Changing the name in res>values>strings.xml will change the app name that is shown in the apps menu after installation
Renaming the android studio project folder (when android studio is closed) will likely satisfy many developers
I have provided three solutions here. Choose whichever applies to your problem.
If you want to just change the name of the project root folder name, you can do it from the explorer:
- Just close the project in the studio, after copying path to the project. Close the project from the main welcome screen.
- go to the file explorer, copy this path on the address bar, and go to the folder.
- Rename the folder that is the root of the project.
- Rename the iml file in this root folder to the name of the folder. That is if the project root folder’s name was say demo_project , there will be demo_project.iml file inside it. If you changed this folder’s name to say my_project , then you have to change the name of the iml file inside it to my_project.iml .
Actually the refactor option from the Studio can do the same.
If you want to change the app folder’s name, that is inside the root folder of the project, do the same in the explorer:
- Rename the app folder to the name you like to have.
[INFO: The APK file, that is generated for this project, will acquire the same first name followed by the suffix that represents the mode you build the signed APK for, that is either debug or release . Signed APK is found in it’s respective folder of debug or release . The unsigned APK is located in output folder of build directory, all build , debug and release folders are found in the primary app folder, or the folder you have renamed this folder to].
- Suppose the name that you have given to this folder is my_project_app , open the folder and rename the app.iml , to my_project_app.iml after the name of the project.
- Now go to the project’s root folder, and find the settings.gradle file.
The content of this file are the names of module folders that you include in the project, currently there is only one module, that is the main one :
This is corresponding to the old name of the app folder.
Hence you have to make the changes:
That’s it. Now you can reload the project in the studio , and check the name of the APK that is generated.
Refactor and Rename a Android Studio Project or App
From the OLD project to the NEW project
Replace /app/src/main/res
Copy /app/src/main/assets
Copy /app/libs
Replace /app/AndroidManifest.xml
Replace /app/build.gradle
Replace /build.gradle
Replace /gradle.properties
Replace /gradle/wrapper
Open the new project folder on Sublime Text .
Find «com.example.myapp»
Replace «com.example.mynewapp»
Open the new Project on Android Studio again.
Build -> Clean Project
Build -> Rebuild Project
How to change your Project Name & Package Name in Android Studio
Today, I’m going to show you how to change your project name and package name in your project very easily!
Let’s dive right into it!
Change the Project Name
Change the name of your project by closing the Android Studio, go to your project folder, rename it…

Delete the .idea folder and .iml file. (To show hidden folders, press Cmd + Shift + . (dot) ).

Open the settings.gradle file with a text editor, like VSCode, and change the rootProject.name to your new project name.

Done! Project name has been changed! Just open your project with the Android Studio and Gradle will sync again.
Change the App Name
Usually, when you change the project name, you wanna change the name of your app too.
Go to the res folder > values > strings.xml and change the app_name to your new name.

Change the Package Name
To rename your package name, all you have to do is go to your AndroidManifest.xml file, put your mouse cursor in front of the part of the package name you want to change.

Right-Click > Refactor > Rename

In the new window press Rename package

Change name and press Refactor

…and press Do Refactor at the bottom.

Your package name is usually in format com.domain.appname, in this example, we changed the appname part, but you can do the same steps for the domain.
Last, go to your module-level build.gradle file and change the package name in applicationId

Done! Package name has changed!
If you have any questions, please feel free to leave a comment below
Refactor and Rename a Android Studio Project or App
From the OLD project to the NEW project
Replace /app/src/main/res
Copy /app/src/main/assets
Copy /app/libs
Replace /app/AndroidManifest.xml
Replace /app/build.gradle
Replace /build.gradle
Replace /gradle.properties
Replace /gradle/wrapper
Open the new project folder on Sublime Text .
Find «com.example.myapp»
Replace «com.example.mynewapp»
Open the new Project on Android Studio again.
Build -> Clean Project
Build -> Rebuild Project