Adding / Uploading / Pushing Files:
- In terminal, git add .
- Then, git commit -m "message"
- Finally, git push -u origin main
Copy Android Studio Projects:
- Zoom out to be in "Project" view instead of "Android"
- Right click the first item. It should be the app.
- Go to Refactor -> Copy Classes.
- Define a new path and app name in the prompt that comes up.
- Once done, open the new project.
- Navigate to app -> src -> main -> java
- Right click the package, and select Refactor -> Rename ALL directories.
- Under res/values/strings.xml, we need to update the project name.
- We can go to "Android" view at this point.
- We also need to change the app ID in build.gradle.kts in two places -- the namespace, and the defaultConfig line.
- At that point, we need to go to Build -> Clean Project.
- The last step is to do Build -> Rebuild Project.
- At this point, we should be all set!