I still hesitate to rely on Android Studio refactoring capabilities, even for simple projects. Just today, I attempted to change a single package name and restructure a package, and the whole project unexpectedly broke. After two hours of debugging, I had no luck fixing it.
In the end, I had to delete the .idea and .gradle folders, open the project in a simpler IDE (where I could easily search and replace strings), manually restructure the files, then open it with Android Studio and build project, and guess what, everything works fine now.
Android Studio Ladybug Feature Drop | 2024.2.2