Cara Merubah Nama Package Apps di Android Studio

In Android Studio, you can do this:

For example, if you want to, then:

  1. In yourProject pane, click on the little gear icon (Gears icon)

  2. Uncheck / De-select the Compact Empty Middle Packagesoption
    Compact empty middle packages
  3. Your package directory will now be broken up in individual directories

  4. Individually select each directory you want to rename, and:

    1. Right-click it
    2. Select Refactor
    3. Click on Rename
    4. In the Pop-up dialog, click on Rename Packageinstead of Rename Directory
    5. Enter the new name and hitRefactor
    6. Allow a minute to let Android Studio update all changes
    7. Note: When renaming comin Android Studio, it might give a warning. In such case, selectRename All
      enter image description here
  5. Now open yourGradle Build File(build.gradle- Usually appor mobile). Update the applicationIdto your new Package Name and Sync Gradle, if it hasn't already been updated automatically:
    Refactor directories
  6. Done!Anyways, Android Studio needs to make this process a little simpler.