Modify the name of the Android Project (non-Eclipse rename) and androideclipse

Source: Internet
Author: User

Modify the name of the Android Project (non-Eclipse rename) and androideclipse

Problem background

In Eclipse, when importing a new Android source code project, if the Eclipse workspace already has the same name project, it cannot be imported.


There are many ways to modify the project name on the Internet, that is, after the import, the Refactor rename method is used. The premise is that you can only change the imported project.


After analyzing the project directory and finding the key point of modifying the project name, note that modifying the project name is not modifying app_name (the program name after apk installation)


1. Find the. project file under the project directory. Is an implicit File

2. open the file, use notepad or ultraedit, and find the following

<ProjectDescription>
<Name>CityListPin</Name>
<Comment> </comment>

Here is the project name. After modification, re-import it in eclipse to see that it has been modified.




How to rename a project in eclipse

Select the project folder, F2 can be renamed, and the key point of Update references is checked.
You can also select the project folder -- Right-click -- Refactor -- Rename. In fact, either of them is one, and F2 is his shortcut key ~!

Eclipse project renaming (how to change the project name completely)

1. Rename a project (select a project, right-click Refactor-Rename)
2. Modify the Web path (select project, right-click Properties-MyEclipse-web, and modify the value of Web Context-root)
3. Modify the project code (modify and replace the original project name in the source program, usually only the original project name is found in the link to. do.

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.