Androidstudio Change package Name

Source: Internet
Author: User

Recently developed a project and previously developed a feature similar to don't want to re-build the interface from scratch to write ...

I want to copy the original project, but that's the way it's going to cover the original item. This is because they have the same applicationid, and ApplicationID is the identity of an app.

So to change the package name and ApplicationID

Modify Package Name:

Select the package you want to modify right-click Refactor-rename

This time will find only the last layer of the package name, if we want to change the middle layer what to do?

Such as:

Click the set icon to set the arrow to the unchecked state, and you will see that the right structure of the package name changes

After structural changes:

At this point you can select any folder to change their package name.

When the light changes the package name to run or overwrite the original apk because there is no change to ApplicationID, we need to change the package name in the Build.gradle in the app directory,

Running again will not overwrite the previous project, because ApplicationID has changed

Here's a question, so don't change the package name only to change ApplicationID not???

The result indicates that it did not overwrite the original, and then regenerate one. But it's time to get the package name unified, or it feels weird.

I hope we can help you.

Androidstudio Change 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.