Rename Android app (Change Package name)

Source: Internet
Author: User

To modify the package name of the Android appCodeCan be installed on a mobile phone ....

(In order to save the interference and inconvenience caused by. SVN, we strongly recommend that you use the pure source code [No SVN ])

In eclipse, we need to spend some time and effort ..

A: Modify the packagename field in manifest. xml and issue a series of errors... And then modify them one by one ..

The following describes a development tool based on the text "find --" (old package name) -----> replace in path (new package name. "Intellij idea"

1: Download idea for free for 30 days.

Http://www.jetbrains.com/idea/download/index.html

2: Install idea and configure the android development environment. Refer to my previous note.

3: import our source code to idea to ensure normal operation. (Otherwise, I don't know if an error is caused by finding replace or the project cannot be run)

4: In the following example, modify com. mystore. customer in the "micro-store" project to "com. efuture. Customer"

4.1 modify package_name in manifest. XML to "com. efuture. Customer"

4.2 then right-click the entire project and choose replace in path> oldstr/new STR> next> replace all.

As follows:

Note that the original "mystore" is still there. Create a new folder named "efuture", copy the original "mystore" to "efuture", and then del "mystore"

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.