Detailed explanation of Android studio modifying application package name

Detailed explanation of Android studio modifying application package name

We usually create new projects. Some friends may write a package name randomly at that time, and then feel that the package name is not very good during the project, so we need to modify the package name. According to our normal modification method, this is the case.

In this case, only the outermost name can be modified,

If we need to modify one of them now, it won't work here.

So let's see how to change it to the package name you want.

The operation diagram is as follows:

See, we just need to remove the compact empty middle packages option in setting, so that our package hierarchy will be separated. At this time, we can make corresponding modifications according to our own needs.

In addition, in studio, our getpackagename corresponds to applicationid, while the package of manifest is actually used to reference internal resource files and ensure that the path of source files such as activity is correct. Therefore, modify the release package name in studio, You only need to modify the applicationid in the build file.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>