Androidstudio Change package Name

Source: Internet
Author: User

Most of the time, we need to replace the app with skin and then package it as a new app. If you just replace the resource, the installation package will replace the previously installed app.

1: Not recommended Practice: directly in the Androidstudio to modify the Build.gradle ApplicationID, but this will cause a third-party licensing issues, such as friends, Jpush will not update the package name. Cause third parties not to use properly
2: Normal Practice: Turn from: http://www.jianshu.com/p/557e1906db1a

  • The default compact empty middle Packages (to close the empty package in the middle) is selected, please cancel out √


  • After canceling the compact Empty middle packages, the class package is displayed as normal structure, for example, the test package will show
  • At this time, we can change the package name at will, select the package name you want to modify the directory, Shift + F6, in the pop-up box to select the rename package, wait a moment, you can see the packet name has changed. OK, for me to change the Package name Test section to rename.
  • In the final step, you need to manually modify the ApplicationID in the project Build.gradle file to match your package name.

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