Android---change package name

Source: Internet
Author: User
  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

    Continue
  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. (You can skip to the fifth step directly)

  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. Then clean the project, run, now you can run our project, found there is no problem!

    Mainly from Baidu, testing feasible

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