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.tasks
tocom.example.presence
.
- Used Refactor ▶ Rename to update the code package from
-
Updated Gradle settings:
-
In
app/build.gradle
(Module:app
):- Changed
namespace
from"com.example.tasks"
to"com.example.presence"
. - Changed
applicationId
from"com.example.tasks"
to"com.example.presence"
.
- Changed
-
In
settings.gradle
: setrootProject.name = "Presence"
(if not already).
-
-
Swapped Firebase config:
- Overwrote
app/google-services.json
with the one registered forcom.example.presence
.
- Overwrote
-
Replaced launcher icon:
- Ran New ▶ Image Asset wizard to generate new adaptive and legacy
ic_launcher
icons.
- 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
R
class under the new package.
-
You may need to restart the Android Studio and you should get a run button working