We usually create a new project some friends may be at the time to write a package name, and then in the project process, and feel that the package name is not very good, so it is necessary to modify the package name, according to our normal modification method, is this.
In a situation where only the outermost name can be modified,
If we now need to modify one of the middle, it won't work here.
So let's take a look at how to modify the package name you want to end up with.
The operation diagram is as follows:
See no, we only need in setting inside, the compact empty middle packages this option to remove, so that our package hierarchy is separated, this time we can according to their own needs to do the corresponding changes.
It is also stated that in Studio our getpackagename corresponds to ApplicationID, and the manifest package, which is used to refer to internal resource files and to ensure Activity The path to the source file is correct, so if you modify the Publish package name in Studio, you only need to modify the ApplicationID in the build file.
Android Studio perfectly modifies app package name