skip to Main Content

I know how to change the package name, suppose from com.example.abc to com.xyz.abc but here in my project the package name is com.abc and I want to change it to com.xyz.abc. How can I do that on Android Studio? Could someone help me with it?

This question is not a duplicate of another post that was linked to it as in my case there is no middle name.

My question differs from the other questions that were linked to my post, in my case there is no middle name. Anyways, I have already fixed the issue.

2

Answers


  1. Create a package xyz under com folder. Then Move all the directory which is inside com folder to xyz folder.

    Login or Signup to reply.
  2. Rename xyz to abc. You will have com.abc.abc. Refactor > Move all files from child abc to parent abc folder. Finally, delete child abc folder.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search