-2

I want to change the package name in android studio but I don't know how to change it. I have package like this com.mycompany.myproject and I want to change it to com.abc.xyz. Thank you so much for your answer!

user7408943
  • 163
  • 14
  • check this https://stackoverflow.com/questions/16804093/android-studio-rename-package – Orvenito Aug 30 '17 at 03:49
  • please find the answer on this link. This works. [https://stackoverflow.com/questions/16804093/android-studio-rename-package](https://stackoverflow.com/questions/16804093/android-studio-rename-package) – Fathima km Aug 30 '17 at 04:24

2 Answers2

1

Click on project setting icon and uncheck Compact Empty Middle Packages, and right click on each package Refactor->Rename

here are the screen short.

enter image description here

Tabish khan
  • 772
  • 8
  • 11
0

I have my own way of doing that. I simply created a new package, and then copied all the classes in the old one to it.