-2

For example currently I have package name like com.test.hello.company & I want to change it to com.test.company only. So How can I change & move the files in all these directories com.test.hello.company without any problem.

1 Answers1

0
  • Right-click project package
  • Select Refactor
  • Click on Rename
  • In the pop-up dialog, click on Rename Package instead of Rename Directory
  • Enter the new name and hit Refactor
  • Click Do Refactor in the bottom
  • Allow a minute to let Android Studio update all changes
Sergey Glotov
  • 19,939
  • 11
  • 82
  • 96
MurugananthamS
  • 2,339
  • 4
  • 18
  • 48