To rename a package in an Android app is a bit more involved than it probably should be. I found the answer on Stackoverflow and this is just a recap
- In the project pane uncheck
Compact Empty Middle Packages
- Right click each folder that should be renamed and choose
Refactor->Rename
- Open the app
build.gradle
file and changeapplicationId
to new package name and sync the gradle files - Open
AndroidManifest.xml
and change thepackage
property to the new name. - If you are using firebase, change the
package_name
ingoogle-services.json
- Clean and rebuild project