To change the package name of your app in Android Studio, you will need to change the applicationId in the build.gradle file. This ID will overwrite any manual changes you make in the manifest file. You can find the build.gradle file in the “Gradle Scripts” section of the project explorer.
Once you change the package name, you will need to sync the Gradle files with the project. You can do this either from the pop-up message, or via Tools>Android>Sync Project with Gradle Files.
Your package name will then be updated in your project, including your AndroidManifest.xml file.
Keywords: Android Studio, package name