I tried the following approaches:
Invalidating cache and restarting Android Studio
Killing the ADB server and restarting it
However, neither of them worked.
Ultimately, reinstalling Android Studio resolved the issue. I believe upgrading Android Studio might also work as a potential solution.