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
Create a package
xyz
undercom
folder. Then Move all the directory which is insidecom
folder toxyz
folder.Rename
xyz
toabc
. You will havecom.abc.abc
. Refactor > Move all files from childabc
to parentabc
folder. Finally, delete childabc
folder.