Android Studio Modify Project package name

Source: Internet
Author: User

The company projects are developed with Eclipse, but Android Studio development is the trend, so in the spare time to use the Androidstudio, here to Androidstudio change the project package name to do a summary, Because they have to change the name of the time to go a lot of detours, for their own mark, gossip less say no picture no truth, directly on the operation of the steps:

First of all, Androidstudio change the reference package name is not as convenient as eclipse, only one change, and in the manifest file and build.gradle to manually change the package name.


1. Change the ApplicationID in Build.gradle to the package name that needs to be changed: it can be placed after the change package name, but sometimes the package name change fails, you need to do this first

2, adjust the package structure display mode: Change the package structure (arrow 1 refers to the structure changes), remove the arrow 2 refers to the check


3. Select the package name you want to change by selecting the package name, right-select arrow 2, select Rename * or select the package name you want to change (arrow 1), and then press and hold the shortcut key SHIFT + F6 to change the package name


4. Change the package name in the popup window, there are two kinds of windows:

1) Select the button in the Red box

Then change the package name in the Change Package name window:

2) The Change Package name window appears directly, change the package name to


5. Change the package name in the manifest file


6, rebuild or clean the project, if the R file reference does not repair the need for manual repair, using the file replacement function is faster! The project package name changes are complete at this androidstudio.















From for notes (Wiz)

Android Studio Modify Project 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.