# 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 Motors App there is a specific package name that is used: **com.stylemixthemes.motors** You should change it to your own package name, for example, **com.mycompany.name** where the mycompany will be the name of your brand.

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

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

<figure><img src="/files/3eh5MSfAMsLqsQZrLw7g" alt=""><figcaption></figcaption></figure>

Uncheck the option Compact Empty Middle Packages

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

Your package directory will be broken into individual directories

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

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

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

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

Enter the new name and hit **Refactor**

<figure><img src="/files/4K1QG41K1zuJ1FsVgiTA" alt=""><figcaption></figcaption></figure>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<figure><img src="/files/0YaiKUSbQQ282NOIcvms" alt=""><figcaption></figcaption></figure>

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/motors-app-documentation/android-application-build/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.
