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 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 questionsplease feel free to leave a comment below

Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Brandon Rains

Thanks for the info! Love your site! your tutorial on fragments was a lifesaver!!! Keep it up !!


I have a question,
I work currently on code name webviewgold.appname and I can change separate app name and domain name.

But, once I fill in domain name com.domain is not updating full name , how should it done?



I have a problem with Kotlin projects. When I change the package name, I get many errors on all fragments. How to fix those errors help me, please…

For example, I want to create a personal APK file for my daily use from this open-source keyboard app name is Florisboard.

florisboard/florisboard: An open-source keyboard for Android which respects your privacy. Currently in early-beta. (

When I change the package name, the app doesn’t build. I have that problem with Kotlin projects. In Java or Flutter I don’t have that errors -_-


Thanks for the reply. I tried this way but still have the same Errors. The project is not building, and when I make any changes to code, it doesn’t run on my device 🙁


All kind of errors that just can be fixed by the code writer i talked to the code owner he said all class names is created by his name and need to be change one by one that needs along time.. because of that i just ignored to edit and work with that fucking code i hate all fuck Kotlin language projects… BIG Thanks for your Replays… Best Regars.