Android Development: Change project name completely

Source: Internet
Author: User

Link Address: http://blog.csdn.net/shengxia0dubing/article/details/25571987

For projects that have been established, if the original project name is found to be inappropriate, if you want to completely change the project name, you need three steps:

1. Change the project name

Select the project name and right-click-->refactor-->rename.

2. Change the package name under the src file

Select the package name and change it in the same way as step 1. But notice that all the options in the pop-up box are selected, and the other items are not changed until finish.

Note: The package name can only be lowercase.

3. Change the package name under Gen file

Select the package name, change the way the package name under the step 2.gen file is usually the same as the file package name under SRC. However, you are prompted that the name already exists, regardless of the hint.

If you do not perform the third step, when you view the running program in the Application Manager, you will find that the program name is still the original name at this time.

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

Link Address: http://jingyan.baidu.com/article/380abd0a71a1061d90192cfd.html

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.

Tools/Materials
    • Eclipse Development Tools
    • A project
Method/Step
    1.  

      Now Build under Project menu Automatically remove, first do not let it synchronous 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 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 change the application name again; Select the project name, right-click->android Tools ->rename Application Packages Modify the package name you want

    6. 6

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

       

1. Right-click Project in Eclipse Project, select Android tool in the popup option → Generate signature app package:


2. Select the Android project that needs to be packaged:


3, if there is a private key file, select the private key file to enter the password, if there is no private key file see steps 6th and 7 to create a private key file:


4. Enter the private key alias and password:


5. Select the location of the APK package storage and complete the setup to start generating the APK signature package:


6. If you do not have a private key file, create a private key file:


7. Enter the required information for the private key file and create:

Android Development: Change project name completely

Related Article

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.