Android Studio – Rename Package


(1)
Open the file:
app >> manifests >> AndroidManifest.xml
enter image description here
Highlight each part in the package name that you want to modify (don’t highlight entire package name) then:

  • Mouse right click >> Refactor >> Rename >> Rename package
  • type the new name and press (Refactor)

Do these steps in each part of the package name
enter image description here
(2)
Open (Gradle Script) >> (build.gradle(Modul:app))
and update the applicationId to your package name
enter image description here
(3)
open the menu (build) and choose (Rebuild Project)


Leave a Reply

Your email address will not be published.