-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
  • 20,200
  • 11
  • 84
  • 98
MurugananthamS
  • 2,395
  • 4
  • 20
  • 49