Recently developed a project and previously developed a feature similar to don't want to re-build the interface from scratch to write ...
I want to copy the original project, but that's the way it's going to cover the original item. This is because they have the same applicationid, and ApplicationID is the identity of an app.
So to change the package name and ApplicationID
Modify Package Name:
Select the package you want to modify right-click Refactor-rename
This time will find only the last layer of the package name, if we want to change the middle layer what to do?
Such as:
Click the set icon to set the arrow to the unchecked state, and you will see that the right structure of the package name changes
After structural changes:
At this point you can select any folder to change their package name.
When the light changes the package name to run or overwrite the original apk because there is no change to ApplicationID, we need to change the package name in the Build.gradle in the app directory,
Running again will not overwrite the previous project, because ApplicationID has changed
Here's a question, so don't change the package name only to change ApplicationID not???
The result indicates that it did not overwrite the original, and then regenerate one. But it's time to get the package name unified, or it feels weird.
I hope we can help you.
Androidstudio Change package Name