If you are using a Mac, follow these steps to resolve the issue with Android Studio not showing the emulator/device name:
Open Activity Monitor: You can find this by opening Spotlight Search (Cmd + Space) and typing "Activity Monitor."
Check for ADB Instances: Look for any instances of adb (Android Debug Bridge) that might be running. It’s common to have multiple instances running, which can cause conflicts.
Force Quit ADB: Select each adb process and click on the 'X' button in the top-left corner of the Activity Monitor window to force quit them.
Restart Android Studio: After force quitting all adb processes, restart Android Studio. By doing this, Android Studio should now be able to detect the running emulator or connected device.