Android studio remove middle part from package name


I want to remove the middle part from the package name.
Ex: to

I have tried few things but not able to remove the middle part of the package name without errors.


I think that the only you can achieve that is this:

  1. Press Ctrl+Shift+R, set Text to find to, Replace with to and hit Find, All Files.

  2. After that open the directory com in file manager, move app up in hierarchy, so it becomes com/app and remove example directory.

Answered By – aga

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published