# Change Package Name

All Android apps have a package name. The package name uniquely identifies the app on the device; it is also unique in the Google Play store.

In MasterStudy App there is a specific package name that is used: **com.example.masterstudy\_app.** You should change it to your own package name, for example, **com.mycompany.name** where the Mycomapny will be the name of your brand.

To change the package name you need to follow some steps.

First you need open **android** folder in AndroidStudio

<figure><img src="/files/sFXTHsbDqtwskZRE1Gvr" alt=""><figcaption></figcaption></figure>

In your **Project panel**, click on the little gear icon.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/project_settings.png)

Uncheck the option Compact Empty Middle Packages

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/compact_mid_pack.png)

Your package directory will be broken into individual directories

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/pack_name.png)

Individually select the directory you want to rename, and follow these steps:

Right-click it >> Select **Refactor** >> Click on **Rename**

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/rename_package.png)

Enter the new name and hit **Refactor**

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/refactor.png)

Click **Do Refactor** in the bottom and wait a minute to let Android Studio update all changes.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/do_refactor.png)

> Note: When renaming com in Android Studio, it might give a warning. In such case, select Rename All.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/com_rename.png)

Edit **build.gradle (Module: app)** file in the **Gradle Scripts**

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/gradle_module.png)

Find the **50th line** and change “com.stylemixthemes.masterstudyapp” to your package name.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/gradle_name.png)

After that click on **Sync Now** to synchronize Gradle.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/sync_now.png)

Then go to **App > Manifests** and edit the file AndroidManifest.xml if it wasn't changed automatically.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/manifest.png)

From the Android Studio menu open **Build** and click on the **Clean Project**. Wait until Android Studio finishes the process.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/clean_project.png)

After that, in the same menu find and launch **Rebuild Project**.

![](https://support.stylemixthemes.com/storage/stm-manuals/June2020/rebuild_project.png)

This is the final step in changing the package name.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/masterstudy-app-documentation/android-app-build-on-macos/change-package-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
