Original address: http://jingyan.baidu.com/article/380abd0a71a1061d90192cfd.html
There may be some minor problems in the process of modification, self-resolution, multiple package names need to be modified, can be modified individually!!!!!
We have to revise the project's package name in order to better publish our project, as needed, as we develop the Android project to a certain extent. However, there are some errors in the process that are sometimes modified. The following is a small series of steps to teach you how to change the package name, and resolve the error that occurred.
-
Now the Project menu under the build automatically removed, do not let it synchronize the compilation, wait a unified to compile.
-
Select the package we need to change, right-click->refactor->rename, the following interface appears, select the previous three options, select Preview, the interface->ok can be
-
Now we can clean up our project; Select the project name->project->clean
-
In this case, the class in the project may be wrong. Take a closer look at the error of coding, the code put in the last line of the comment line. Cause the following variable name cannot be found, this time we just need to release the code into the next line.
-
Let's revise the application name again; Select the project name right-click the->android Tools->rename application Package to modify the name
-
Now you can run our project and find out there's no problem!
How do I change the package name of my Android project?