MasterStudy App Documentation
App PageChangelog
  • Introduction
  • MasterStudy LMS API Plugin Setup
  • Flutter Environment
  • Android App Build on macOS
    • Flutter Setup for the macOS system
    • Android Studio Setup on mac
    • Android Studio Emulator on mac
    • Null safety setup
    • Installing Flutter Packages on mac
    • Setting the Site URL on mac
    • Adding App Icon on mac
    • Setting App Name on mac
    • Firebase on mac
    • Firebase Project Setup
    • Change Package Name
    • Test Your App on mac
    • App Release on mac
  • iOS App Build
    • Building App for iOS
    • Firebase for iOS
  • Google And Facebook Sign-In
    • Google Sign-In
    • Facebook Sign-In
  • Android App Build on Windows OS
    • Flutter Setup for Windows System
    • Android studio Setup on Windows
    • Android Studio Emulator on Windows
    • Null safety setup
    • Installing Flutter Packages on Windows
    • Setting the Site URL on Windows
    • Adding App Icon on Windows
    • Firebase on Windows
    • Firebase Project Setup
    • Change Package Name
    • Setting App Name on Windows
    • Test Your App on Windows
    • App Release on Windows
  • Extra Materials
    • Item Page
    • Changelog
  • stylemixthemes
  • Themes
  • Plugins
Powered by GitBook
On this page

Was this helpful?

  1. Android App Build on macOS

Change Package Name

PreviousFirebase Project SetupNextTest Your App on mac

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 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

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 50th line and change “com.stylemixthemes.masterstudyapp” 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.