Can We Change the Package Name in Android Studio?
Contents

Can I change package name in Android Studio?

Right-click on the package at the Project Panel. Choose Refactor -> Rename from the context menu. Highlight each part in the package name that you want to modify (don’t highlight the entire package name) then: Mouse right-click → Refactor → Rename → Rename package.

How do I rename a package?

** Way 01 **

  1. Right-click it.
  2. Select Refactor.
  3. Click on Rename.
  4. In the Pop-up dialog, click on Rename Package instead of Rename Directory.
  5. Enter the new name and hit Refactor.
  6. Click Do Refactor in the bottom.
  7. Allow a minute to let Android Studio update all changes.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest