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