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