How to change package name in android studio ?

 Step by Step Guide to Change Package Name in Android Studio:

  1. Open your Android Studio project.
  2. Navigate to the “Project” panel, located on the left side of the screen.
  3. Right-click on the package you want to change and select “Refactor” from the context menu.

  4. Select “Rename” from the Refactor menu.

  5. Enter the new package name in the “New Name” field.

  6. Android Studio will show a preview of the changes that will be made, including all of the files that will be affected.

  7. If you are satisfied with the changes, click the “Refactor” button.

  8. Android Studio will then update all of the relevant files and directories with the new package name.

  9. To ensure that your project is still working as expected, run it in the emulator or on a device.

  10. Finally, commit and push the changes to your version control system (e.g. Git) to ensure that the changes are permanent.

And that’s it! You have successfully changed the package name in Android Studio.

Previous Post Next Post