Android Studio perfectly modifies app package name

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.