0

Our app contains several modules, which of them have the same package structure: i.E. com.package.app.*

Now I would like to rename a package (and of cause all its subpackages) within only one module without renaming it in another modules. It should be something like com.package.app.* => com.newpackage.app.*

Is there a simple solution for this?

I saw Android Studio Rename Package but the solutions there seem to work for applications with one module.

Thank you in advance

Tima
  • 12,765
  • 23
  • 82
  • 125

2 Answers2

0

Android studio requires the name of the package to be same for all files in the app.

ANUJ GUPTA
  • 905
  • 13
  • 22
0

You can not have two package names in you application. However if you are referring to the structure like this:

enter image description here

Then you will have to right click on the root package and click on new > package

Right Click > New > package and define the name of the directory.

The Bat
  • 1,085
  • 1
  • 13
  • 31