Cara Merubah Nama Package Apps di Android Studio
In Android Studio, you can do this:
For example, if you want to changecom.dimensitekno.apptocom.dimensitekno.game, then:
In yourProject pane, click on the little gear icon ()
- Uncheck / De-select the Compact Empty Middle Packagesoption
Your package directory will now be broken up in individual directories
Individually select each directory you want to rename, and:
- Right-click it
- Select Refactor
- Click on Rename
- In the Pop-up dialog, click on Rename Packageinstead of Rename Directory
- Enter the new name and hitRefactor
- Allow a minute to let Android Studio update all changes
- Note: When renaming comin Android Studio, it might give a warning. In such case, selectRename All
- 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:
- Done!Anyways, Android Studio needs to make this process a little simpler.