How do I change the package name of my Android project?

Source: Internet
Author: User

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.

    1. Now the Project menu under the build automatically removed, do not let it synchronize the compilation, wait a unified to compile.

    2. 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

    3. Now we can clean up our project; Select the project name->project->clean

    4. 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.

    5. Let's revise the application name again; Select the project name right-click the->android Tools->rename application Package to modify the name

    6. Now you can run our project and find out there's no problem!

How do I change the package name of my Android project?

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.