Rename Android package

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 change applicationId to new package name and sync the gradle files
  • Open AndroidManifest.xml and change the package property to the new name.
  • If you are using firebase, change the package_name in google-services.json
  • Clean and rebuild project