> For the complete documentation index, see [llms.txt](https://docs.stylemixthemes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stylemixthemes.com/masterstudy-app-documentation/android-app-build-on-macos/change-package-name.md).

# 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="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2FiEB9t3mzlTi6YpGJjXX1%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.26.05.png?alt=media&amp;token=0a98ec47-5ef5-458f-be72-74ba6bc84d8c" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
