Android studio remove middle part from package name

Issue

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

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

Solution

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

  1. Press Ctrl+Shift+R, set Text to find to com.example.app, Replace with to com.app 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