For some reason, change PackageName to a new name. The process was not found before, so it was too difficult to change it.
You may think back to many steps:
1. Right-click the package name --> refactor --> rename
2. Run in AndroidManifest. xml
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Package ="Com. newpakageName"
Android: versionCode = "1"
Android: versionName = "1.0" type = "codeph" text = "/codeph">
Change the red part to your new package name.
3 .......
4. An error occurs after compilation. You need to change the package name that exists in other parts...
5 .......
-------------------------------------------------------
In fact, the above steps do not need to be done one by one, as long as one step, the following is the focus!
Only two steps:
1. Right-click the project android tools → rename application package and enter our package name.
2 then refactor (updated) All package names)
OK.
Thank you for this skill! Thank you!