Motors App Documentation
App PageChangelog
  • Introduction
  • Motors Application Plugin
    • Installation of the plugin
    • Motors Application Plugin Settings
    • Global Settings
    • Main Page
    • Add a Car Page
    • Inventory
    • Flutter Environment
  • Android Application Build on macOS
    • Flutter Setup for the macOS system
    • Android Studio Setup on mac
    • Android Studio Emulator on mac
    • Installing Flutter Packages on mac
    • Null Safety setup
    • Setting the Site URL on mac
    • Upload your logo
    • Adding App Icon on mac
    • Setting App Name on mac
    • Change Package name
    • Test Your App on mac
    • App Release on mac
  • Setup Environment
    • Push Notification Setup
  • Android Application Build on Windows
    • Flutter Setup for the Windows system
    • Android studio Setup on Windows
    • Android Studio Emulator on Windows
    • Installing Flutter Packages on Windows
    • Null safety setup
    • Setting the Site URL on Windows
    • Upload your logo
    • Adding App Icon on Windows
    • Change Package Name
    • Test Your App on Windows
    • App Release on Windows
  • IOS App Build
    • Step 1 – App Registration on App Store Connect
    • Step 2 – Register a Bundle ID
    • Step 3 – Prepare for app distribution
    • Step 4 – Setting up the project
    • Step 5 – Add an App Icon
  • IOS App Release
    • Step 1 – Create a build archive
    • Step 2 – Upload an app to App Store Connect
  • Extra Materials
    • Item Page
    • Changelog
      • Page 1
  • stylemixthemes
  • Themes
  • Plugins
Powered by GitBook
On this page

Was this helpful?

  1. Android Application Build on Windows

Change Package Name

PreviousAdding App Icon on WindowsNextTest Your App on Windows

Last updated 2 years ago

Was this helpful?

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.

Uncheck the option Compact Empty Middle Packages

Your package directory will be broken into individual directories

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

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

Enter the new name and hit Refactor

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

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

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

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

After that click on Sync Now to synchronize Gradle.

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

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

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

This is the final step in changing the package name.