Rename project from Tasks to Presence and update related configurations
-
Renamed project package via Android Studio:
- Used Refactor ▶ Rename to update the code package from
com.example.taskstocom.example.presence.
- Used Refactor ▶ Rename to update the code package from
-
Updated Gradle settings:
-
In
app/build.gradle(Module:app):- Changed
namespacefrom"com.example.tasks"to"com.example.presence". - Changed
applicationIdfrom"com.example.tasks"to"com.example.presence".
- Changed
-
In
settings.gradle: setrootProject.name = "Presence"(if not already).
-
-
Swapped Firebase config:
- Overwrote
app/google-services.jsonwith the one registered forcom.example.presence.
- Overwrote
-
Replaced launcher icon:
- Ran New ▶ Image Asset wizard to generate new adaptive and legacy
ic_launchericons.
- Ran New ▶ Image Asset wizard to generate new adaptive and legacy
-
Final sync and rebuild:
- Clicked Sync Project with Gradle Files (elephant icon).
- Used Refactor ▶ Clean and Assemble Project with Tests to regenerate the
Rclass under the new package.
-
You may need to restart the Android Studio and you should get a run button working